In this lab, you complete a prewritten Python program for a carpenter who creates personalized house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts:

The charge for all signs is a minimum of $35.00.
The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character.
If the sign is make of oak, add $20.00. No charge is added for pine.
Black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering.

Instructions
Make sure the file HouseSign.py is selected and open.
You need to assign variables for the following:
A variable for the cost of the sign assigned to 0.00 (charge).
A variable for the number of characters assigned to 8 (numChars).
A variable for the color of the characters assigned to "gold" (color).
A variable for the wood type assigned to "oak" (woodType).
Write the rest of the program using assignment statements and if statements as appropriate. The output statements are written for you.
Execute the program by clicking the Run button at the bottom of the screen. Your output should be: The charge for this sign is $82.0.

Respuesta :

Using the computer language in python to write a function code that personalized house signs

Writting the code in python:

#Assign varibles

charge = 0.00

numChars = 8

color = "gold"

woodType = "oak"

#Checking for number of characters

if numChars > 5:

charge = 35 + (numChars-5)*4

elif numChars > 0:

charge = 35

#Checking wood type

if woodType == "oak":

charge += 20

#Checking for color

if color == "gold":

charge += 15

#Print output

print("The charge for this sign is $"+str(charge)+".")

See more about python at brainly.com/question/13437928

#SPJ1

Ver imagen lhmarianateixeira