C++ Programming /Computer Science

C++ Programming /Computer Science

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.

(70​ ​points)​ ​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. (60​ ​points)​ ​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%. (60​ ​points)​ ​Finally​ ​we​ ​need​ ​to​ ​ask​ ​user​ ​for​ ​a​ ​discount code.​ ​Discount​ ​code​ ​is​ ​a​ ​numeric​ ​code​ ​–​ ​we​ ​support two​ ​codes.​ ​If​ ​user​ ​enters​ ​discount​ ​code​ ​112233,​ ​we apply​ ​20%​ ​discount​ ​to​ ​the​ ​total​ ​price.​ ​If​ ​user​ ​enters discount​ ​code​ ​111222,​ ​we​ ​apply​ ​10%​ ​discount​ ​to total​ ​price.​ ​If​ ​no​ ​code,​ ​user​ ​should​ ​enter​ ​0.​ ​Any​ ​other code​ ​should​ ​result​ ​in​ ​invalid​ ​discount​ ​code​ ​message and​ ​the​ ​calculation​ ​happen​ ​without​ ​any​ ​discount. (60​ ​points)​ ​At​ ​the​ ​end​ ​of​ ​the​ ​calculation,​ ​your

program​ ​should​ ​give​ ​user​ ​the​ ​ability​ ​to​ ​compute​ ​another​ ​shower​ ​enclosure​ ​or​ ​exit​ ​out​ ​of​ ​the​ ​program. On​ ​the​ ​left​ ​hand​ ​side,

Order from us and get better grades. We are the service you have been looking for.