Question: This week you are going to simulate a convenience store purchase. Your store has 3 items: - Oranges at $0.95 per lb. - Energy Drink

This week you are going to simulate a convenience store purchase. Your store has 3 items: -

Oranges at $0.95 per lb.

- Energy Drink $1.50 each

- Yogurt $0.75 each

Let Oranges be non-taxable, but make Energy Drinks and Yogurts taxable at 6.50% In your program you need to ask the user:

How many pounds of oranges do you have? <--user enters input here

How many Energy Drinks do you have? <--user enters input here

How many Yogurts do you have? <--user enters input here

You will then print the cost per item, sales tax and grand total. An example of the programs output is shown below:

Welcome to <--your store's name-->

How many pounds of oranges do you have?: 1.75 <--entered by user

How many Energy Drinks do you have?: 3 <--entered by user

How many Yogurts do you have?: 4 <--entered by user

Item Cost Tax

Oranges 1.66

Energy Drink 4.50 0.29

Yogurt 3.00 0.19

Totals 9.16 0.48

Grand Total: 9.6

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 Databases Questions!