1. Display a message asking the user to enter the name of the customer.
2. Display a message asking the user to enter the name of a product.
3. Display a message asking the user to enter the quantity of the product ordered by the
customer that was entered earlier. Assume the quantity is always an integer e.g. 4, 8, 22…
4. Calculate the total price for the customer including the discount (see No. 7 below).
5. You program should have a list to store customer names, and a list to store product names.
Every product has a price in dollar e.g. $58.85, $0.50, $3990. You can assume product
names and customer names are all unique.
6. In you program, write a short explanation on how products and their price are stored.
7. Your program will go through the customer list and the product list. For an existing customer,
10% discount will apply. No discount for new customers. Your program is now able to
calculate the total price. Assume the search is case-sensitive e.g. John ¹ john ¹ johN.
8. The total price will be displayed as a formatted message to the user, e.g.
purchased x
Unit price:
Total price:
Answers
Answered by
0
Explanation:
Full all app aap ek do so so so so do do all app to do so so will all all ek to ek is g ex will do the kk p in hell
Similar questions