Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem description: A renowned manufacturer of computers wants a program to calculate the cost of each order that a client places. Products have a type,

Problem description:

A renowned manufacturer of computers wants a program to calculate the cost of each order that a client places. Products have a type, cost and quantity. The cost of ultraportable laptops type of computers is $400, of laptops type of computers is $800 and of server type of computers is $1200. If the client orders a total of 5- 10 computers they get a discount of 2%, if they order 11 or up to 50 computers they get a discount of 7% and if they order more than 50 computers, they get a discount of 12%. No discounts are given for orders of less than 5 computers. The final cost computed should take all of these considerations into account.

The program should prompt the user for the quantity of each type of computer and provide the total cost of the order.

Write source code in Dr. Java, test it with the test cases created in the earlier deliverable and submit your .java file here.

Code should have clear comments explaining the purpose of the program and the variables.

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions