Our glass installation business needs a program that will assist our agents in calculating the installed cost of shower enclosure. This is in particular for 90 degree glass shower enclosures.

computer science

Description

Shower Door Estimate 

Our glass installation business needs a program that will assist our agents in calculating the installed cost of shower enclosure. This is in particular for 90 degree glass shower enclosures. 


The program will get the depth (B), width (A) and height (C) of the shower base as shown on the diagram on the right. Program also needs to get the thickness of the glass as that affects the price. All input are in inches. 


For a 90-degree shower enclosure, we need 2 panels of glass. Area of panel 1 is depth times height. Area of panel 2 is width times height. If area of both panels is larger than (and equal to) 6000 inches square, unit price per square inch is $0.99. If it is less than 6000 square inch, then the per unit square price of glass is $1.29. For any enclosure that requires less than 3000 square inch, the unit price is $1.49.


Based on the unit price and the area of glass needed to complete the job we can compute the installed price of the enclosure. There is, however, 50% surcharge if the thickness of the glass is larger than (or equal to) 0.5 inches. Otherwise, if the thickness of the glass is larger than (or equal to) 0.375, the surcharge is 20% 



Related Questions in computer science category