Answer:
import java.util.Scanner;
// Needed for the Scanner class This program calculates the user's gross pay.
public class Pay {
public static void main(String[] args) {
// Create a Scanner object to read from the keyboard.
Scanner keyboard = new Scanner(System.in);
// Identifier declarations
double hours;
// Number of hours worked
double rate;
// Hourly pay rate
double pay;
// Gross pay
// Display prompts and get input.
System.out.print("How many hours did you work? ");
hours = keyboard.nextDouble();
System.out.print("How much are you paid per hour? ");
rate = keyboard.nextDouble();
// Perform the calculations.
if (hours <= 40) {
pay = hours * rate;
}
else
{
pay = (hours - 40) - (1.5 * rate) + 40 - rate;
}
// Display results.
System.out.println("You earned $" + pay);
}
}
Explanation:
Answer:
see explaination
Explanation:
The following code is in python 3.5 and above:
# Create a main method
def main():
# Accept name from the user
name = input("Enter your name: ")
# Accept describe yourself from the user.
describe = input("Describe yourself: ")
# Create a file object
f = open('person.html','w')
# Creat a string to store the html script.
message = """<html>
<head>
</head>
<body>
<center>
<h1>"""+name+"""</h1>
</center>
<hr/>"""+describe+"""<hr/>
</body>
</html>"""
f.write(message)
f.close()
main()
Answer: JavaScript. What kind of script is used to run code on the client
Answer:
two million years ago
Thomas Edison, American inventor who, singly or jointly, held a world-record 1,093 patents. In addition, he created the world's first industrial research laboratory.
Answer:
positive bc you can learn from them wwhat to do what not to do mistakes that you wont make in. real life