Question

Computer Sciencés Role in Industry home > 4.10: Program Automobile service invoice (Python 3) E zyBooks catalo 4.10 Program:

ervi E zyBooks catalog Help/FAo My library > CS 200 Computer Sciences Role in Industry home 4.10: Program Automobile service

TY 4.10.1: Program Automobile service invoice (Python 3) 9/10 main.py Load default template 1 print(Davys auto shop service

× |围Third of Ma X | (E) Module Thi/Xj zy 4.10. Progr: X Home-) St X e 4.10 Progr. X + rary > CS 200 Computer Sciences Role n

TY 4.10.1: Program Automobile service invoice (Python 3) 9/10 main.py Load default template 1 print(Davys auto shop service

U.T. Progra ram hutorhoble Service voice (PythonS) main.py 16 print(Davys auto shop invoice) 17 print() 18 #Iterate the di

In PYT IN PYT d-8787548 https: learn zybooks.com/zybook/SNHUCS200AY16-17/chapter 4 section/10?content resource С E zyBook Boo

In PYT IN PYT Sign ot IE) Theme l HUM2 a☆ e https:/learn.zybooks.com/zybook/SNHUCS200AY16-17/chapter/A/section/102content res

I dont know what I did wrong but I got 9/10. I need one more.

Computer Sciencés Role in Industry home > 4.10: Program Automobile service invoice (Python 3) E zyBooks catalo 4.10 Program: Automobile service invoice (Python 3) (1) Output a menu of automotive services and the corresponding cost of each service.(2 pts) Ex: Davy's auto shop services oil change $35 Tire rotation $19 Car wash$7 Car wax $12 (2) Prompt the user for two services from the menu. (2 pts) Ex: select first service: oil change Select second service: Car wax (3) Output an invoice for the services selected Output the cost for each service and the total cost (3 pts Dl 8 4 0
ervi E zyBooks catalog Help/FAo My library > CS 200 Computer Sciences Role in Industry home 4.10: Program Automobile service invoice (Python 3) (3) Output an invoice for the services selected Output the cost for each service and the total cost. (3 pts) Davy's auto shop invoice Service 1: 0il change, $35 Service 2: Car wax, $12 Total: $47 (4) Extend the program to allow the user to enter a dash (), which indicates no service (3 pts) Ex Select first service: Tire rotation Select second service Davy's auto shop invoice Service 1: Tire rotation, 19 Service 2: No service Total: 519 8 0
TY 4.10.1: Program Automobile service invoice (Python 3) 9/10 main.py Load default template 1 print("Davy's auto shop services") 2 print("oil change $35") 3 print(Tire rotation $19") 4 print("Car wash $7") 5 print("car wax$12) 6 print() 7 service1 input ("Select first service: ") 8 print() 9 print() 10 service2 = input("Select second service: ") 11 print () 12 print() 13 dic "oil change" "35", "Tire rotation" "19", "Car wash":"", "car wax": "12" 14 total 15 print 16 print("Davy' s auto shop invoice) 17 print) 18 #terate the dictionary values When done developing your program, press the Submit for grading button below This wil submit your program for auto-grading Develop mode Submit mode Submit for grading Total score: 9/10 Latest submission 5:30 AM on 05/29/19 all 8 0 0
× |围Third of Ma X | (E) Module Thi/Xj zy 4.10. Progr: X Home-) St X e 4.10 Progr. X + rary > CS 200 Computer Sciences Role n lndustry home > 4 10. Program Automobile service invoice (Python 9) ezyBookscatalog Oheb/FAQ θ Cheeting Yap 4.101: Program Automobile service invoice (Python 3) ACTNIY 9/10 main.py Load default template.. Run your program as often as you'd like before submitting for grading Below type any needed mput values in the first box then click Run program and observe the programs output in the second box. Develop mode Enter program input (optional) If your code requires input values provide them here 4:3 0 8 6 4 0

U.T. Progra ram hutorhoble Service voice (PythonS) main.py 16 print("Davy's auto shop invoice") 17 print() 18 #Iterate the dictionary values 19 for key, value in dic.items(): 20 i if (servicel key): print ("Service 1:", key+str(") dic[key]) total total +int (dic[key]) if(service2 print("Service 2:",key+str(", s")+dic[key]) total-total int (dic[key]) 21 key ) : 23 24 25 26 #if the service2 value is - then it display No service 27 if (service2) 28 print( service 2: "No service") 29 print() 30 print("Total: s+str (total)) 31 32 When done developing your program, press the Submit for grading button submit your program for auto-grading. Develop mode Submit mode Submit for grading Latest submission 5:30 AM on 05/29/19 Total Only show failing tests (5 tests hidden) Download this □11
In PYT IN PYT d-8787548 https: learn zybooks.com/zybook/SNHUCS200AY16-17/chapter 4 section/10?content resource С E zyBook Books Mylibrary os 200 computer Scienceés Role in Industry home >4 10. Program Automobile service nvoice (Python 3) 6:Compare output Special charecter legend Output differs. See highlights below. Input Car Wax Davy's auto shop services oil change $35 Tire rotation$19 Car wash7 Car wax$12 Select first service: Your output Select second service: Davy's auto shop invoice Service 2: Car wax, $12 Total: $12 Davy's auto shop services Oil change $35 Tire rotation$19 Car wash7 all 8,
In PYT IN PYT Sign ot IE) Theme l HUM2 a☆ e https:/learn.zybooks.com/zybook/SNHUCS200AY16-17/chapter/A/section/102content resource id-8787548 E zyBooks oks My brary- 05-200 computer Scenots Role inIndustry home 4 10 Program Automobie evice invoice P'ython:3) Select first service Your output Select second service: Davy's auto shop invoice Service 2: Car wax, $12 Total: $12 Davy's auto shop services Oil change $35 Tire rotation $19 Car wash$7 Car wax $12 Select first service: Expected output Select second service: Davy's auto shop invoice Service 1: No serviceo Service 2: Car wax, $12 Total: $12 8 4
0 0
Add a comment Improve this question Transcribed image text
Answer #1

You forgot to compare service1

if(service2=="-")

print("Service 2:","No service")

else if(service1=="-")

print("Service 1:","No service")

Add a comment
Know the answer?
Add Answer to:
I dont know what I did wrong but I got 9/10. I need one more. Computer Sciencés Role in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I dont know what I did wrong but I got 9/10. I need one more. Computer...

    I dont know what I did wrong but I got 9/10. I need one more. Computer Sciencés Role in Industry home > 4.10: Program Automobile service invoice (Python 3) E zyBooks catalo 4.10 Program: Automobile service invoice (Python 3) (1) Output a menu of automotive services and the corresponding cost of each service.(2 pts) Ex: Davy's auto shop services oil change $35 Tire rotation $19 Car wash$7 Car wax $12 (2) Prompt the user for two services from the menu....

  • Please Help with the code below not sure where my error is...Thanks. Program output displayed here:...

    Please Help with the code below not sure where my error is...Thanks. Program output displayed here: Davy's auto shop services Oil change -- $35 Tire rotation -- $19 Car wash -- $7 Car wax -- $12 Enter the first service from the menu: Traceback (most recent call last): File "main.py", line 9, in choice1 = input("Enter the first service from the menu: "); EOFError: EOF when reading a line Here is the code: # Type your code here services =...

  • Lab Chapter 12 Vinnie's Auto Shop performs the following routine maintenance services: • Oil change: $35.00...

    Lab Chapter 12 Vinnie's Auto Shop performs the following routine maintenance services: • Oil change: $35.00 • Lube job: $25 • Battery replacement: $80 • Tire rotation: $20 Vinnie also performs other nonroutine services and charges for parts and for labor ($60 per hour). Using JavaFX, create a GUI application that buttons for the above list of services and textfields/buttons for parts and labor. As the user selects buttons, a total amount is to be displayed Grading Criteria • Documentation...

  • I Dont know what journal entry I did wrong? Can someone please check over my work...

    I Dont know what journal entry I did wrong? Can someone please check over my work so I can balance out the trial balance and post closing trial balance. Thanks! Weige Richard ACA Formulas Draw View Data Review Home Ensert Page Layout Tell me Α Α΄ = = = 25 Wrap Text Paste Merge & Center $ % 9 TU a. Av B Xfx Tonny's Lawn Service, Inc. - Transactions - Agarionarinformation July 2021 Transactions Date Description of the Transaction...

  • i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due...

    i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

  • SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the...

    SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the company's new line of single-serve coffee pods or to await results from the product's launch in the United States. Key strategic decisions include choosing the target market to focus on and determining the value proposition to emphasize. Important questions are also raised in regard to how the new product should be branded, the flavors to offer, whether Kraft should use traditional distribution channels or...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT