Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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)

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 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

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_2

Step: 3

blur-text-image_3

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions