Question: p# HouseSign.py - This program calculates prices for custom house signs. # Initialize variables here. charge = 0 num _ chars = 8 color =

p# HouseSign.py - This program calculates prices for custom house signs.
# Initialize variables here.
charge =0
num_chars =8
color = "gold"
wood_type = "oak"
# Charge for this sign.
# print("first five letters(or numbers) is minimal charge")
# print("oak wood is $20 extra, pine is no extra charge")
# print("Black or white letters are minimum charge")
# print("there is a $15 extra charge for gold-leaf lettering")
# Number of characters.
Temp_num = input("number of characters")
# convert to number
num_chars = int(Temp_num)
# Color of characters.
color = input("gold or black white lettering? -(gold or black white)")
# Type of wood.
wood_type = input(" wood type, oak or pine? (oak is $20 extra)")
# Write assignment and if statements here as appropriate.
if num_chars >5:
num_chars = int(Temp_num)
charge =(((num_chars -5)*4)+35)
else:
charge =35
if color == "gold" :
charge = charge +15
if color == "black white" :
# minimal charge
charge = charge
if wood_type == "oak" :
charge = charge +20
if wood_type == "pine":
# minimal charge
charge = charge
print(f" wood charge total = ${charge:.2f}")ython HouseSign.py code solution

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!