Question: Write a program that uses three arrays Mango, Orange and Banana to store the number of fruits purchased by customer. The program inputs the number
- Write a program that uses three arrays Mango, Orange and Banana to store the number of fruits purchased by customer. The program inputs the number of mangoes, oranges and bananas to be purchased by customer and stores them in corresponding arrays. The program finally displays the total bill of each customer according to the following prices:
Rs. 20 per mango [C3, CLO-3, PLO-3]
Rs. 10 per orange
Rs. 5 per banana
The output should appear as follows:
Customer No Mangoes Oranges Bananas Total Bill
---------------------------------------------------------------------------------------------------------------------
1 5 10 12 Rs. 260
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
