For the following program in phyton :  Pay Check Window Cost Write an interactive program to calculate the cost of glasswork and metal stripping for rectangular windows. All windows, no matter what size, use the same quality of glass and aluminum strips. Prompt the user for his/her name, age, length, and width of a window, then calculate the costs shown based on the information read in from the windowinfo.txt file which contains the materials types and costs (you cannot change this file at all). There is a discount on the total cost of 10% if the total area is over 1000 square inches, and 15% if it is over 1500 square inches. *Be sure to include a try/except and any and all string methods you might need *No conditional loops can be used at all **This is the info you will see in the text file, remember you must read this in and store it: Glass: 80 cents per square inch (unit area) Aluminum: $1.25 per inch (unit length)   This is the sample output. Write it to both the screen and a text file called windowtotal.txt: WELCOME TO THE WONDERFUL WORLD OF WINDOWS!! Name: Brad Pitt Age: 50 Length of the window(inches): 35 Width of the window(inches): 40 ****************************************** Total cost of glass: $1,120.00 Area: 1400 Total cost of metal stripping: $187.50 Perimeter: 150 Total cost of window: $1,307.50 Discount: $130.75 ****************************************** Total after discount: $1,176.75

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

For the following program in phyton : 

Pay Check
Window Cost
Write an interactive program to calculate the cost of glasswork and metal
stripping for rectangular windows. All windows, no matter what size, use the
same quality of glass and aluminum strips. Prompt the user for his/her name,
age, length, and width of a window, then calculate the costs shown based on the
information read in from the windowinfo.txt file which contains the materials
types and costs (you cannot change this file at all). There is a discount on the
total cost of 10% if the total area is over 1000 square inches, and 15% if it is
over 1500 square inches.
*Be sure to include a try/except and any and all string methods you might need
*No conditional loops can be used at all
**This is the info you will see in the text file, remember you must
read this in and store it:
Glass: 80 cents per square inch (unit area)
Aluminum: $1.25 per inch (unit length)

 

This is the sample output. Write it to both the screen and a text file called
windowtotal.txt:
WELCOME TO THE WONDERFUL WORLD OF WINDOWS!!
Name: Brad Pitt Age: 50
Length of the window(inches): 35
Width of the window(inches): 40
******************************************
Total cost of glass: $1,120.00
Area: 1400
Total cost of metal stripping: $187.50
Perimeter: 150
Total cost of window: $1,307.50
Discount: $130.75
******************************************
Total after discount: $1,176.75

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,