You are an employee of the Rainbow Paint Store. For the purposes of this program, the Rainbow
Fantastic news! We've Found the answer you've been seeking!
Question:
You are an employee of theRainbow Paint Store.For the purposes of this program, theRainbow Paint Storeonly sellsredandgreenbuckets of paint.
Your task:
- Ask the customer which paint colour they wish to purchase, and how many buckets of paint are needed. You will need to use a loop with your program to allow the user to make as many purchases of either colour of paint as they wish.
- Establish methods to deal witheachcolour of paint.
- The method ofredpaint: Determines the cost of the pain based upon $21.95 per bucket. Return the total cost to main.
- The method ofgreenpaint: Determines the cost of the pain based upon $19.95 per bucket. Return the total cost to main.
- Establish a 3rd method that just prints the store name (for billing purposes).
- Establish a 4th method that determines the total cost of the customer's order. This method will receive the total individual costs for red and green paint, will compute the final overall cost, and will also add 13% sales tax to the order. Format this receipt into a chart/table (i.e. use System.out.format).
- Establish a 5th method that prints a thank-you message for buying at this store.
- Your main method should keep looping until the user says they do not wish to buy any more paint. Then, after the loop, print a bill for the customer by calling the appropriate methods from main. The bill is to be developed in the following order:
- the store name
- the total cost of each individual paint colour
- the total bill with sales tax
- and a thank you message
- Be sure that all money amounts are printed to two decimal places using a Decimal Formatter.Remember to include headers for each method, a header for the program, and lots of //comments.
*****Don't forget to error-trap any unwanted input******
Related Book For
Posted Date: