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:
I think it is the first one
Explanation:
Hello there.
Which of the following formats can algorithms NOT be written in:
Answers: Flow Chart
Answer:
x = int(input ("enter first number: "))
y = int(input ("enter second number: "))
z = int(input ("enter third number: "))
print('%6d %6d %6d' %(x,y,z))
Explanation:
Using python programming language we receive three integers variables (x,y,z) then using string formatting (%6) which specifies that the output should be right justified with a width of 6, the values are printed out.
Answer:
that means it needs to get charged or it's on airplane mode not sure what else it could be