Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how could I set this up in c++ Write a program which computes the total cost of purchases made in a store compute the cost

how could I set this up in c++ image text in transcribed
Write a program which computes the total cost of purchases made in a store compute the cost plus 5.5% sales tax of purchases made if taxable. This program computes the total cost of purchases made. 1. Prompt the user for number of items purchased and price per item. 2. Prompt the user if the purchases is taxable 3. Calculate the totalCost where a. The number of items and price per item as parameters b. The totalCost of all items, including 5.5% tax if taxable. 4. Display information the number of items purchased, cost per item and the cost of all items in a nicely formatted output where the cost is set to 2 decimal places. (see sample run) 5. Using a for loop display the price from item I to total number of items a. Display the tax amount being applied (if not taxable) b. Display the total price of purchase with tax applied

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions