Search for question
Question

You have a program to calculate the total price of fruits. The program will receive item id as a user input. Table 3 shows the list of fruits. The process

to calculate the total price will be repeated until the user enter invalid item id (refer Table 3). Finally, the program will display the total price of fruits.Figure 2 shows example of output for the program.

Fig: 1

Fig: 2

Fig: 3

Fig: 4