create a logarithm using this code
import java.util.Random; import java.util.Scanner; public class Main { public static void main(String[] args) { String Play=""; Random r = new Random(); String yes = "yes"; Scanner one = new Scanner (System.in); int secretNumber,secretNumber1,secretNumber2,guess; int max = 10; int min = 1; int max1 = 25; int max2 = 50; do{ System.out.println("Mystery Number!"); System.out.println(" "); System.out.println("Welcome WEAKLING!!! hahahhahah..... I don't think that you can win this game."); System.out.println(" "); System.out.println("LEVEL 1: EASY MODE"); System.out.println(" "); System.out.println("Instructions: Guess the secret number within 1-10"); System.out.println("Take Note: You only have 5 tries! HAVE FUN!!!"); System.out.println(" "); secretNumber = r.nextInt(max - min) + min; secretNumber1 = r.nextInt(max1 - min) + min; secretNumber2 = r.nextInt(max2 - min) + min; for (int i = 1; i <= 5; i++) { System.out.println("Please enter your guess within 1-10:"); guess = one.nextInt(); if (guess > secretNumber) { System.out.println("Too big!");} else if (guess < secretNumber) { System.out.println("Too small!");} else { System.out.println("Huh! You're just lucky this time..."); System.out.println(" "); System.out.println("Wanna try you're luck once more? yes or no?"); Play=one.next(); if(Play.equals(yes)){ System.out.println(" "); System.out.println("LEVEL 2: Normal MODE"); System.out.println(" "); System.out.println("HAHAHAHA!!! I BET THIS TIME YOU'LL LOSE!!"); System.out.println(" "); System.out.println("Instructions: Guess the secret number from 1- 25"); System.out.println("Take Note: You only have 6 tries! HAVE FUN!!!"); System.out.println(" "); for(i = 1; i <= 6; i++){ System.out.println("Please enter your guess from 1-25"); guess = one.nextInt(); if(guess > secretNumber1){ System.out.println("Too big");} else if (guess < secretNumber1){ System.out.println("Too small!");} else{System.out.println("You've got a good instinct Huh? Well, I know that would be the last time!"); System.out.println(" "); System.out.println("Do you want to continue? yes or no?"); Play=one.next(); if(Play.equals(yes)){ System.out.println(" "); System.out.println("LEVEL 3: Beast MODE"); System.out.println(" "); System.out.println("You want more? Really? Here, There's no room for LUCK!"); System.out.println(" "); System.out.println("Instructions: Guess the secret number from 1- 50"); System.out.println("Take Note: You only have 7 tries! HAVE FUN!!!"); for(i = 1; i <= 7; i++){ System.out.println(" "); System.out.println("Please enter your guess from 1-50"); guess = one.nextInt(); if(guess == secretNumber2){ System.out.println(" "); System.out.println("Noooooo! This shouldn't be happening!!"); System.out.println("What a Lucky player!!!"); break;} else if (guess < secretNumber2){System.out.println("Too small!");} else{System.out.println("Too big!");} if (i == 7) {System.out.println("Your out of chances!, The correct number is:" + secretNumber);} }} else{System.out.println("Nice try, WEAKLING!!!");} break;} if (i == 6) {System.out.println("Your out of chances!, The correct number is:" + secretNumber);} }} else{System.out.println("Nice try, WEAKLING!!!");} break;} if (i == 5) { System.out.println("Your out of chances!, The correct number is:" + secretNumber);} } System.out.print("Try Again? (yes or no)"); System.out.println(" "); Play = one.next(); }while(Play.equalsIgnoreCase("yes")); System.out.print("Get out...WEAKLING!!!"); } }
Sure! Here's a sample HTML website with CSS for a business:
```
<!DOCTYPE html>
<html>
<head>
<title>Business Name</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
color: #333;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #f2f2f2;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
font-size: 36px;
text-transform: uppercase;
}
nav {
background-color: #999;
text-align: center;
padding: 10px;
margin-bottom: 20px;
}
nav a {
color: #f2f2f2;
text-decoration: none;
padding: 10px;
margin-right: 10px;
border-radius: 5px;
}
nav a:hover {
background-color: #f2f2f2;
color: #333;
}
section {
margin: 20px;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 5px #ccc;
}
h2 {
margin-top: 0;
font-size: 24px;
text-transform: uppercase;
margin-bottom: 20px;
}
p {
margin-bottom: 20px;
line-height: 1.5;
}
footer {
background-color: #333;
color: #f2f2f2;
text-align: center;
padding: 20px;
}
footer p {
margin: 0;
font-size: 16px;
}
</style>
</head>
<body>
<header>
<h1>Business Name</h1>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About Us</a>
<a href="#">Services</a>
<a href="#">Contact Us</a>
</nav>
<section>
<h2>Welcome to Our Business</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis vitae tellus nec bibendum. Sed eget varius sapien. Vestibulum gravida tortor nec urna pellentesque, id bibendum purus lacinia. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In elementum dolor ut enim tincidunt, a pharetra lorem condimentum. Praesent porta tortor eu mi euismod porttitor. Quisque sed diam vel sapien fermentum tempor vel quis nisl.</p>
<p>Donec euismod non sem quis venenatis. Praesent interdum congue turpis, a posuere quam elementum vel. Vivamus blandit elit eget libero pretium eleifend. Duis vel urna euismod, convallis neque eu, tristique libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Phasellus porttitor iaculis mauris
Create a logarith using this code :
import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String Play="";
Random r = new Random();
String yes = "yes";
Scanner one = new Scanner (System.in);
int secretNumber,secretNumber1,secretNumber2,guess;
int max = 10;
int min = 1;
int max1 = 25;
int max2 = 50; do{
System.out.println("Mystery Number!");
System.out.println(" ");
System.out.println("Welcome WEAKLING!!! hahahhahah..... I don't think that you can win this game."); System.out.println(" ");
System.out.println("LEVEL 1: EASY MODE");
System.out.println(" ");
System.out.println("Instructions: Guess the secret number within 1-10");
System.out.println("Take Note: You only have 5 tries! HAVE FUN!!!");
System.out.println(" ");
secretNumber = r.nextInt(max - min) + min;
secretNumber1 = r.nextInt(max1 - min) + min;
secretNumber2 = r.nextInt(max2 - min) + min;
for (int i = 1; i <= 5; i++) {
System.out.println("Please enter your guess within 1-10:");
guess = one.nextInt();
if (guess > secretNumber) {
System.out.println("Too big!");}
else if (guess < secretNumber) {
System.out.println("Too small!");}
else { System.out.println("Huh! You're just lucky this time...");
System.out.println(" ");
System.out.println("Wanna try you're luck once more? yes or no?");
Play=one.next();
if(Play.equals(yes)){
System.out.println(" ");
System.out.println("LEVEL 2: Normal MODE");
System.out.println(" ");
System.out.println("HAHAHAHA!!! I BET THIS TIME YOU'LL LOSE!!");
System.out.println(" ");
System.out.println("Instructions: Guess the secret number from 1- 25");
System.out.println("Take Note: You only have 6 tries! HAVE FUN!!!");
System.out.println(" ");
for(i = 1; i <= 6; i++){
System.out.println("Please enter your guess from 1-25");
guess = one.nextInt();
if(guess > secretNumber1){
System.out.println("Too big");}
else if (guess < secretNumber1){
System.out.println("Too small!");}
else{System.out.println("You've got a good instinct Huh? Well, I know that would be the last time!"); System.out.println(" ");
System.out.println("Do you want to continue? yes or no?");
Play=one.next();
if(Play.equals(yes)){
System.out.println(" ");
System.out.println("LEVEL 3: Beast MODE");
System.out.println(" ");
System.out.println("You want more? Really? Here, There's no room for LUCK!"); System.out.println(" ");
System.out.println("Instructions: Guess the secret number from 1- 50");
System.out.println("Take Note: You only have 7 tries! HAVE FUN!!!");
for(i = 1; i <= 7; i++){
System.out.println(" ");
System.out.println("Please enter your guess from 1-50");
guess = one.nextInt();
if(guess == secretNumber2){
System.out.println("Noooooo! This shouldn't be happening!!");
System.out.println("What a Lucky player!!!");
break;}
else if (guess < secretNumber2){System.out.println("Too small!");}
else{System.out.println("Too big!");}
if (i == 7) {System.out.println("Your out of chances!, The correct number is:" + secretNumber);} }} else{System.out.println("Nice try, WEAKLING!!!");}
break;}
if (i == 6) {System.out.println("Your out of chances!, The correct number is:" + secretNumber);}
}}
else{System.out.println("Nice try, WEAKLING!!!");}
break;}
if (i == 5) {
System.out.println("Your out of chances!, The correct number is:" + secretNumber);} } System.out.print("Try Again? (yes or no)"); System.out.println(" "); Play = one.next();
}while(Play.equalsIgnoreCase("yes"));
System.out.print("Get out...WEAKLING!!!"); } }