Question
Lab Project for Methods You are employed by the Rainbow Paint Store. For the purposes of this program, the Rainbow Paint Store only sells RED
Lab Project for Methods
You are employed by theRainbow Paint Store.
For the purposes of this program, theRainbow Paint Storeonly
sellsREDandGREENgallons of paint.
Your task:
1. From main, ask the customer which paint color they wish to purchase and how many full gallons of paint are needed. Design the program to allow the customer to make additional purchases of either color of paint.
2. Establish a method to deal witheachcolor of paint (2 methods). The method for theredpaint: determine the cost of the paint based upon $21.95 per gallon. Return the total cost to main. The method for thegreenpaint: determine the cost of the paint based upon $19.95 per gallon. Return the total cost to main.
3. Establish a method to print the store title for billing purposes.
4. Establish a method that determines a total bill for the customer. This method will receive the totals from the two paint methods, will compute the final total cost, and will add 8% sales tax to the order. Return this final total to main.
5. Establish a method to print a thank-you message for buying at this store.
6. Print a bill for the customer. The bill is to be developed in the following order: the store name, the total cost of each paint color, the total bill with sales tax, and the thank you message.
7. Be sure that the money amounts are printed as money amounts.
All Rights Reserved MathBits.com
Step 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