Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 8 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started