Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: IDLE Change the HouseSign.py scripting to calculate changing the if statements to follow the instructions. A minimum sign cost will be $40.00. If the

Python: IDLE

Change the HouseSign.py scripting to calculate changing the if statements to follow the instructions. A minimum sign cost will be $40.00. If the lettering is "gold" and the woodType is "oak" add $21.00 to the cost. if the lettering is "red" or the woodType is "mahogany" add $10.00 to the cost.

""" HouseSign.py - This program calculates prices for custom house signs. """

# Declare and initialize variables here. # Charge for this sign. CHARGE=35.00 GOLDL=15 WT=20

charge=0.00 # Number of characters. numChars=0 # Color of characters. color="" # Type of wood. woodType=""

# Write assignment and if statements here as appropriate.

sign_cost=CHARGE numChars=int(input("Please enter number of charagters for your sign.")) color=input("Please enter color of lettering on the sign.") woodType=input("Please enter the wood type.")

if numChars > 5: sign_cost=sign_cost + (numChars-5) * 4 if color=="gold": sign_cost=sign_cost + 15.00 if woodType=="oak": sign_cost=sign_cost + 20.00 # Output Charge for this sign. print("The charge for this sign is $" + str(sign_cost))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is project portfolio management?

Answered: 1 week ago

Question

Is there a clear hierarchy of points in my outline?

Answered: 1 week ago