Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create the c++ program using visual studio 2013 prefered 2. Write a program that inputs the name, quantity, and price of many items (until the

Create the c++ program using visual studio 2013 prefered
image text in transcribed
2. Write a program that inputs the name, quantity, and price of many items (until the user enters "no" as an item name. Output a bill with a tax rate of 13%. All real numbers should be output to two decimal places. The bill should be formatted in columns with 30 characters for the text, 10 characters for the numbers. Also print the most and least costly items. Sample input and output is shown as follows: Input: Input name of item 1: Lollipops Input quantity of 1: 10 Input price of item1: 0.50 Input name of item 2: diet soda Input quantity of 2: 3 Input price of item 2: 1.25 Input name of item 3: bread Input quantity of 3: 20 Input price of item 3: 0.5 Input name of item 6: no Output Bill: Number of items: Total quantity Subtotal 13% sales tax: Total: 18.75 2.44 16.31 Most costly item: Least costly item: bread diet soda

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions