Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2 The method for determining the optimal quantity of a public good.

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago