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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, mayapril813
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
image
Computers and Technology, 23.06.2019 03:30, bellsbella34
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, erjalinalii
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
You know the right answer?
Understanding if Statements (brushing up on earlier assignments I didn't do too well on) Summary:<...

Questions in other subjects: