Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A retail clothing store uses software to compute total cost of items. This software also handles sales tax and any discounts that need to be

A retail clothing store uses software to compute total cost of items. This software also handles sales tax and any discounts that need to be applied to an order. The costs of a customer purchase are provided through an input file named clothing.dat with the following data: You will need to create the specified input file and then write a C++ program that reads data from the input file and stores the output in the file clothing_cost.dat. Calculate the total cost of the order and include a 7% sales tax. Also assume that the customer has a coupon that will discount the entire order by the percent listed in the input, this discount should be taken before taxes are added. Your file output should follow this same format: Make sure to format the output of decimal numbers to two decimal places.image text in transcribedimage text in transcribed

T-Shirt: 15 Jeans 60 Jacket: 80 Sweatshirt: 30 Hoodie: 40 Socks: 15 Discount: 10

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 Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

9. Identify four interaction styles in intercultural marriages.

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago