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

1 Expert Approved Answer
Step: 1 Unlock

Heres a Java program that accomplishes what you described import javautilScanner public class Main p... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!