Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago