Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!