Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
numchars
color "gold"
woodtype "oak"
# Charge for this sign.
# printfirst five lettersor numbers is minimal charge"
# printoak wood is $ extra, pine is no extra charge"
# printBlack or white letters are minimum charge"
# printthere is a $ extra charge for goldleaf lettering"
# Number of characters.
Tempnum inputnumber of characters"
# convert to number
numchars intTempnum
# Color of characters.
color inputgold or black white lettering? gold or black white
# Type of wood.
woodtype input wood type, oak or pine? oak is $ extra
# Write assignment and if statements here as appropriate.
if numchars :
numchars intTempnum
charge numchars
else:
charge
if color "gold" :
charge charge
if color "black white" :
# minimal charge
charge charge
if woodtype "oak" :
charge charge
if woodtype "pine":
# minimal charge
charge charge
printf wood charge total $charge:fython HouseSign.py code solution
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