subject

Challenge 15A - PaintCalculator Package: chall15A
Class: Main, RoomSize, PaintType

Write a program to help a paint company prepare bids for painting projects

Your program must:

1. Have a RoomSize class with a constructor that holds the parameters of length, height, and width.
2. Have a PaintType class with a constructor that holds the parameters of color, cost, and coverage.
3. Constructors should have methods for getters and setters.
5. Main should provide a menu to enter room and paint information to the objects and then make calculations.

Use the following information.

• Wall surface area of a room = (L*W)+2*(L*H)+2*(H*W)
• Base Blue Paint, $30/gal, 300 square feet
• Base Green Paint, $ 32/gal, 350 square feet
• Premium Blue Paint $40/gal, 425 square feet
• Premium Green Paint, $42/gal, 415 square feet

Make a calculation to bid for a hotel with 150 rooms. Rooms are 15'x12'x9', Half of the rooms are to be blue and the other half green. Create a bid for both Base and Premium paints.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Write a program to analyze student’s scores. each student’s id and 4 original test scores are saved in the attached file “student_id_scores.txt”. assume there are exactly 15 students in the class.• the program first opens the file, reads student’s ids and scores from the file and saves them in two arrays: o create a one-dimensional string array “ids” to store the student’s ids.o create a (parallel) two-dimensional int array “scores” to store student’s original test scores. this array has 5 columns, the original 4 test scores should be saved in the first 4 columns, and the last column will be used to save the average score after the calculation in next step.• the program then retrieves test scores from the array “scores”, calculates average score and determines the final letter grade based on the rules in the table below for each student. assume average score is integer value.average score = (score1 + score2 + score3 + score4) / 4average score letter grade90 ~ 100 a80 ~ 89 b70 ~ 79 c60 ~ 70 d0 ~ 60 f• the average score should be saved back in the 5th column of “scores” array.• create a new parallel one-dimensional char array “grades” to save each student’s letter grade.• program also needs to find the number of a, number of b, number of c, number of d and number of f grade. as well as the highest, lowest and average score of the class.• finally, program will display all of the original scores and all results on the computer screen using the format shown as the sample output below.• the program must contain at least the following functions: (1) a function “getscores” to read and store data into “ids” and “scores” arrays.(2) a function “analyzescores” to calculate student’s average score, determine letter grade, get the number of a, b, c, d and f, find the highest, lowest and average score of the class.(3) a function “displayresults” to display all of the results
Answers: 3
question
Computers and Technology, 24.06.2019 17:40
The value of sin(x) (in radians) can be approximated by the alternating infinite series create a function (prob3_2) that takes inputs of a scalar angle measure (in radians) and the number of approximation terms, n, and estimates sin(x). do not use the sin function in your solution. you may use the factorial function. though this can be done without a loop (more efficiently), your program must use (at least) one. you may find the mod() function useful in solving the problem.
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
You know the right answer?
Challenge 15A - PaintCalculator Package: chall15A
Class: Main, RoomSize, PaintType

Questions
question
Mathematics, 17.03.2020 03:16
question
Mathematics, 17.03.2020 03:17
Questions on the website: 13722361