You are invited by an online company to sell some unknown items to customers. Currently this company only sells three online items. The company will give discount based on the total costs of each items. The highest costs among the three items will get a discount of 30%, the lowest costs among the three items will get a discount of 10% and the cost in between will get a discount of 20%. Of course, you can declare three constants to cater for the three discounts should the company decide to change the percentage of discounts.

We divide the design into a few tasks.

Task 1

When entering to the system, the system captures the prices of the three items together with their quantities of orders. The following shows some of the interactions and displays: See image.

You can see in the above screen captured that you have to enter the price of each item together with the quantity of order of each item. You should ignore the comment that I have placed after each set of inputs.

Task 2

After placing the orders, you then compute the total cost of each item and determine which item has the highest costs, the lowest costs and the middle costs; and display the following information: See image.

Task 3

After knowing the highest, the lowest and the middle costs of each item, you then generate a summary of purchase. You compute the final cost of each item and add them together and display the total costs. The following shows the summary table: See image.

As can be seen from the above table, item 2 actually has the highest costs among the three items and item 1 has the lowest costs.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.