Using python, to develop a cash register or a fruit shop. The program would ask for the number of customers and the name of each customers. As well as the number of oranges and apples they bought. And then print a summary of what they bought along with the bill as illustrates in the session below:
Using python, to develop a cash register or a fruit shop. The program
would ask for the number of customers and the name of each customers. As well as the number of oranges and apples they bought. And then print a summary of what they bought along with the bill as illustrates in the session below:
Using a for loop to do this.
How many customers? 2 Name of Customer 1 Harry Oranges are $1.40 each. How many Oranges? 1 Apples are $.75 each. How many Apples? 2 Harry, you bought 1 Orange(s) and 2 Apple(s). Your bill is $2.9 Name of Customer 2 Sandy Oranges are $1.40 each. How many Oranges? 10 Apples are $.75 each. How many Apples? 4 Sandy, you bought 10 Orange(s) and 4 Apple(s). Your bill is $17.0