Question
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.
T-Shirt: 15 Jeans 60 Jacket: 80 Sweatshirt: 30 Hoodie: 40 Socks: 15 Discount: 10Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started