Java program 1. Prompt for a pay rate. 2. Prompt for a work hour. 3. Compute and
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 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
College Algebra With Modeling And Visualization
ISBN: 9780134418049
6th Edition
Authors: Gary Rockswold