Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions