subject

Understanding if Statements (brushing up on earlier assignments I didn't do too well on) Summary:
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:
1. Make sure the file HouseSign. py is selected and open.
2. 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).
3. Write the rest of the program using assignment statements and if statements as appropriate. The output statements are written for you.
4. Execute the program by clicking the "Run Code" button at the bottom of the screen. Your output should be: The charge for this sign is $82.0.
Assignment (HouseSign. py)- here's my code, not sure what I'm doing wrong but I'm only getting 50% passed:
numChars = int(input('8'))
color = input("gold")
woodType = input("oak")
if numChars == 8:
charsCharge = numChars - 5 * 4
if color == "gold":
colorCharge = 15
if woodType == "oak":
woodCharge = 20
print("The charge for this sign is $" + str("82"))

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
Understanding if Statements (brushing up on earlier assignments I didn't do too well on) Summary:<...
Questions
question
History, 13.05.2020 01:57
Questions on the website: 13722367