Write a complete C++ program to calculate the total price of fruits. The program will receive the item id as a user input. Table 1 shows the list of fruits. The process to calculate the total price will be repeated until the user enters an invalid item id (refer to Table 1). Finally, the program will display the total price of fruits. Figure 1 shows an example of the output for the program.
Table 1: List of fruits
Item Name Cost per Unit
Apple RM 2.00
Orange RM 2.50
Lemon RM 1.80
Enter the item id: A
Enter the quantity of the item: 5
Enter the item id: 0
Enter the quantity of the item: 4
Enter the item id: L
Enter the quantity of the item: 3
Enter the item id: K
The total price is: RM 25.4
Figure 1: Example of outputs