Question: You are asked to develop a cash register for a fruit shop that sells oranges and apples. The program will first ask the name of

You are asked to develop a cash register for a fruit shop that sells oranges and apples. The program will first ask the name of the customer and the number of oranges and apples they would like to buy. And then print a summary of what they bought along with the bill as illustrated in the session below:
What is your Name?
> Harry
Oranges are $1.20 each. How many Oranges?
>4
Apples are $.75 each. How many Apples?
>8
Harry purchased 4 Oranges and 8 Apples.
The total bill is 10.8 dollars

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!