Question
Please help me with an assignment for my python programming class! Here is the assignment. I just don't know where to start, this class confuses
Please help me with an assignment for my python programming class! Here is the assignment. I just don't know where to start, this class confuses me.
Program assignment: Write a Python program to help a local builder calculate the total cost of a new window. Identify symbolics and variables using the description below. You are required to use symbolics for all the underlined bold literals given. Abbreviations are encouraged
The cost of a window includes the glass and framing at the following rates:
Price of Glass: $5.50 per square foot Price of Framing: $8.60 per linear foot
Sales tax equal to 5.5% of the glass and framing cost is added to the bill. The labor rate for installation of the window is $11.25 per square foot. No tax is charged on labor.
Input: Prompt the user to enter the height and width of a window in feet. Expect input value with decimals.
Calculations: Perform the following calculations to find the cost for a window with the dimensions entered by the user:
glass area = height * width // The size (area) of the window in square feet
Cost of glass = glass area * price of glass
framing = 2 * (height + width) // The linear feet of framing needed
Cost of framing = framing * price of framing
Sales Tax = tax rate as a decimal * the sum of the cost of glass and cost of framing
Labor cost = labor rate * glass area
Total cost of window = cost of glass + cost of framing + sales tax + labor cost
Output: The glass area, linear feet of framing, cost of the glass, the cost of the framing, the sales tax, labor cost and the total cost for a window. Format of output is shown on the next page.
Test your program with several different window heights and widths. Use Decimal values!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started