Question

please explain in C++ only

Your task: From main, ask the customer which paint colorthey wish to purchase and how many full gallons of paint are needed. Design the program to allow the customer to make changes such as return replace or additional purchases of either color of paint. Establish an error trap to ensure that the user input is in the indicated range (lower cases and upper case). 1. Establish a function to deal with each color of paint (5 functions). 1: The function for the LighBlue paint: determine the cost of the paint based upon $20.90 per gallon. Return the total cost to main. 2: The function for the Gray paint: determine the cost of the paint based upon $22.50 per gallon. Return the total cost to main. 3: The function for the Wheat paint: determine the cost of the paint based upon $23.25 per gallon. Return the total cost to main. 4: The function for the Red paint: determine the cost of the paint based upon $21.95 per gallon. Return the total cost to main. 5: The function for the Green paint: determine the cost of the paint based upon $19.95 per gallon. Return the total cost to main. 2. Establish a function to print the store title for billing purposes (Line-1&3 starlines, Line-2 for store name.) 3. Use cout text alignment (left justified, by using cout.width(40)) 4. Establish a function that determines a total bill for the customer. This function will receive the totals from the five paint functions, will compute the final total cost, and will add HST - 13% to the order. Return this final total to main. Text alignment (left justified, by using cout.width(40)) 5. Clear screen before Print a bill for the customer (so that inputted data should disappeared from the screen). The bill is to be developed in the following order: the store name, the total cost of each paint color, the total HST, the total bill with sales tax, and the thank you message. Text alignment (left justified, by using cout.width(40)) 6. Be sure that the money amounts are printed as money amounts and setprecision(2). 7. Establish a payment function: This function is to be developed in the following order.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 9 more requests to produce the answer.

1 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
please explain in C++ only
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • in python please (1) Prompt the user to input a wall's height and width. Calculate and...

    in python please (1) Prompt the user to input a wall's height and width. Calculate and output the wall's area (integer). (Submit for 2 points). Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet (2) Extend to also calculate and output the amount of paint in gallons needed to paint the wall (floating point). Assume a gallon of paint covers 350 square feet. Store this value in a variable. Output the amount of paint...

  • please explain in C++ only This program determines how much it cost to paint a room...

    please explain in C++ only This program determines how much it cost to paint a room Please write a program which determines and prints out three results. 1. The number of exact gallons of paint to paint the walls and the ceiling (NOT THE FLOOR) of the room if 1 gallon is enough to paint 400 square feet. 2. How many gallons of paint you need to buy since you cannot buy part of a gallon. So if you need...

  • In C# You will be prompting the user for a text string a list of bills...

    In C# You will be prompting the user for a text string a list of bills they have every month. a. This should be a comma separated list , bill1, bill2, bill3 b. Validate that this text string is not left blank. 3. Create a custom function called CreateBillArray a. This function should accept the string variable that holds the bills. b. Inside of the function, split the text string of the bills into a string array with each individual...

  • C++, please make it as simple as possible. A Paint Company is hiring you to develop...

    C++, please make it as simple as possible. A Paint Company is hiring you to develop an application to estimate the costs for a job. They have determined that for every 120 square feet of wall area, one gallon of paint and eight hours of labor is required. The company charges US$ 18.00 per hour for labor. Write a modular program that allows the user to enter the number of rooms that are to be painted and the price of...

  • code in C++ Create a program that uses the pass by reference operator instead of the...

    code in C++ Create a program that uses the pass by reference operator instead of the return command. Your main program will need to: create empty variables call void function 1 with no input to display your name to the screen call function 2 to collect the square feet that a gallon of paint covers from user call function 2 to collect the square feet of wall that needs to be painted call function 3 to calculate the number of...

  • can you show how to do this work Question 13 Using a computerized Inventory Management System,...

    can you show how to do this work Question 13 Using a computerized Inventory Management System, a Paint Supply Store franchise continuously monitors the inventory of all the paint located at each of their 15 stores X and their distribution warehouse. The Paint Supply Store franchise sells an average of 74 gallons of Purple Paint every week (for 52 weeks per year, Standard Deviation of the Demand - 8 gallons). They purchase Purple Paint from their supplier at a price...

  • //Add name, date, and description here //preprocessor directives #de fine CRT SECURE NO WARNINGS ...

    Complete the incomplete code provided //Add name, date, and description here //preprocessor directives #de fine CRT SECURE NO WARNINGS #includestdio.h> - //Calculate the cost of the gas on a trip /Ideclare, ask, and get the price per gallon and the mpg /Icalculate and return (by reference) the cost of gas for the number of miles passed to the function void GasCost (double miles, double *gasTotalPtr) //using a 70 MPH speed limit and the miles passed to the function //calculate and...

  • A cut Copy - Format Painter Clipboard 10 AA EE a. A BIU Wrap Text Merge...

    A cut Copy - Format Painter Clipboard 10 AA EE a. A BIU Wrap Text Merge & Center - E Accounting $ - %, 85 Alignment Number B27 - B DE F 1 Chapter 7: Applying Excel 3 Data 4 Manufacturing overhead 5 Selling and administrative overhead 6 $500,000 $300,000 Assembling Processing Units Orders 50% 35% 10% 45% 1.000 units orders 8 Manufacturing overhead 9 Selling and administrative overhead 10 Total activity 11 Supporting Customers 5% 25% 100 customers Other...

  • Must Follow Example code //Add name, date, and description here //preprocessor directives #de fine CRT SECURE...

    Must Follow Example code //Add name, date, and description here //preprocessor directives #de fine CRT SECURE NO WARNINGS #includestdio.h> - //Calculate the cost of the gas on a trip /Ideclare, ask, and get the price per gallon and the mpg /Icalculate and return (by reference) the cost of gas for the number of miles passed to the function void GasCost (double miles, double *gasTotalPtr) //using a 70 MPH speed limit and the miles passed to the function //calculate and return...

  • Activity-Based Costing: Selling and Administrative Expenses Jungle Junior Company manufactures and sells outdoor play equipment. Jungle...

    Activity-Based Costing: Selling and Administrative Expenses Jungle Junior Company manufactures and sells outdoor play equipment. Jungle Junior uses activity-based costing to determine the cost of the sales order processing and the customer return activity. The sales order processing activity has an activity rate of $20 per sales order, and the customer return activity has an activity rate of $100 per return. Jungle Junior sold 2,500 swing sets, which consisted of 750 orders and 80 returns. a. Determine the total sales...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT