Problem: Write a program for scheduling a building paint job. Both interior and exterior. The program will do the following: Get the following data from the customer: - Ask the customer to enter...

how to solve this


Problem: Write a program for scheduling a building paint job. Both interior and exterior. The program will do the following: Get the following data from the customer: - Ask the customer to enter his/her name. - Ask the customer to enter the month number that they want to schedule the paint job for (Let the customer know the valid entries are 1 – 12). - Ask the customer to enter the size of the interior and exterior walls (per square feet) that they want painted. o example: interior: 7600 exterior: 6400 - Ask the customer for their credit card number (Let the user know AMEX, VISA, & MC cards are accepted) o (Have in mind that AMEX cards are 15 digits, VISA/MC cards are 16 digits) o example: 312345678912345 (Amex example) 4987654321234567 (Visa example) - Note: Make sure to read the values from the same line as the question. (Question and answer in same line) Perform the following calculations: - Calculate the following: o Total number of gallons(cans) of paint needed for the interior (a whole number) o Total number of gallons(cans) of paint needed for the exterior (a whole number) o Total number of gallons(cans) of paint needed altogether (a whole number) § Perform your calculations based on the following information: • Each 1 gallon can of paint can paint 400 SQFT • Make sure you always have enough paint • Hint: You can add a can (gallon) to the result to make sure you have enough. • [XC] Extra Credit Point: Instead of just adding a can, actually calculate how many cans (gallons) you need. o total cost of interior paint o total cost of exterior paint o total cost of paint all together § Perform your calculations based on the following pricing: • Exterior paint is weatherproof and more expensive. • Price to paint the interior walls: $300.00 (per gallon). • Price to paint the exterior walls: $600.00 (per gallon). Create a receipt for the customer that looks as: - [tab]Date: followed by [Today’s date] o Code for today’s Date is: DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss") - [tab]Name: followed by [Customer name] - [tab]Card Number: followed by [Customer credit card number as described below] o Display the card as six (6) stars followed by the last 4 digits of their card number. o Example, if card number: 1234567890123456, display: ******3456 o Use Substring. - [tab]Month Scheduled: followed by [month] o The month will be displayed in the following format: § The 3-letter name of the month followed by a space and then the month number inside a pair parenthesis. § Example: if month = 11, then display: NOV (11) § Use enum (if not sure how, replace month name with “???”, ex: ??? (11)) Line 1: [tab]Date: [Today’s Date] Line 2: [tab]Name: Name Line 3: [tab]Card Number: ******[Last 4 digits] Line 4: [tab]Month Scheduled: NOV (11) <------------ 40="" chars="" -----------=""> Only 10 digits of the card number is displayed Month Scheduled, is the [3-letter Month Name] ([Month Number]) Followed by receipt details. - A line of space, followed by details. o Details are as follows: § Line 1: [tab]Header row (Type, Area (sqft), Paint (gal), Cost ($) ) § Line 2: [tab]dashes § Line 3: [tab]Interior detail § Line 4: [tab]Exterior detail § Line 5: [tab]dashes § Line 6: [tab]Totals o Note: Format and display all $ values with $ sign and one decimal points - The receipt will look something like the following example: Date: Todays Date Name: xxxx Card Number: ******3450 Month Scheduled: NOV (11) Type Area (SqFt) Paint (Gal) Cost ($) --------- ----------- ----------- ----------- Interior 7600 19 $5,700.0 Exterior 5500 14 $8,400.0 --------- ----------- ----------- ----------- Total 13100 33 $14,100.0 Comments: Make sure to provide comments in your code as needed to describe your work. Also include the following program info at the top of your program inside the Class().
Oct 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here