Answered step by step
Verified Expert Solution
Link Copied!

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 =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

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

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

ISBN: 321321367, 978-0321321367

More Books

Students also viewed these Databases questions