Question: (TO BE DONE IN JAVA) You took your economic stimulus money, bought a used cargo van, and started the AAA Delivery Service. You decided you

(TO BE DONE IN JAVA)

(TO BE DONE IN JAVA) You took your economic stimulus money, bought

You took your economic stimulus money, bought a used cargo van, and started the AAA Delivery Service. You decided you wanted to stay local so you were only interested in local deliveries, or deliveries not too far away. You decided to charge a flat fee of $10.39 per package. In addition to the flat fee, you came up with this rate chart based on distance: Delivery distance up to 8 miles over 8 miles and up to 10 miles over 10 miles and up to 25 miles Over 25 miles but not to exceed 40 miles Charges no additional charge an additional $1.99 an additional $1.99 per mile over 8 miles an additional $2.59 per mile over 8 miles Write a program that asks the user for the delivery distance and then displays the amount the customer needs to pay. In addition to your program running correctly, you will be graded on: use of comments. Your program needs to be properly commented. use of appropriate variable names. use of proper formatting of your output use of consistent input/output (using scanner or JOptionPane, not both) use of user prompts for input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!