Question: Java program 1. Prompt for a pay rate. 2. Prompt for a work hour. 3. Compute and display the salary based on the entered pay
Java program
1. Prompt for a pay rate.
2. Prompt for a work hour.
3. Compute and display the salary based on the entered pay rate and work hour.
4. Prompt for a distance in miles.
5. Prompt for a gallon.
6. Compute and display the mpg based on the entered distance and gallon.
7. Prompt for a US dollar.
8. Convert the US dollar to Canadian money.
1. project: ch2b_project
2. name:
3. run time:
4. Please enter the pay rate: $10
5. Please enter the work hour: 20
6. The salary is $200.
4. Please enter the distance in miles: 100
5. Please enter the gallon usage: 5
6. The mpg is 20.
7. Please enter the US dollar amount: $100
8. It equals to Canadian dollar C$124.00
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
Heres a Java program that accomplishes what you described import javautilScanner public class Main p... View full answer
Get step-by-step solutions from verified subject matter experts
