Ge MessageCent X | § eCampusiThar X | BA Content/Cve, X | ZV Section131- X«> cZY Sectionit6- X ZY Section120- X | §x eCampusOct X | J hps/mwwe X | + v Xx& learn.zybooks.com/zybook/CYB_130T_...

1 answer below »
Programming questions


Ge MessageCent X | § eCampusiThar X | BA Content/Cve, X | ZV Section131- X «> c ZY Sectionit6- X ZY Section120- X | §x eCampusOct X | J hps/mwwe X | + v Xx & learn.zybooks.com/zybook/CYB_130T_56153713/chapter/1/section/16 Q Maps © YouTube [J LTilaunch & Overview - GEN/20T.... 2% » 00 @ Linux Debugging Inte... [MB OverTheWire: Bandit ® Learning | Linux Journ... © Checking Feedback -.. EB Checking assignment... & Home - Evaluate Sour... — My library > CYB 130T: Object-Oriented Scripting Language home > - zyBooks 1.16: LAB: Input: Welcome message |B zyBooks catalog @ Help/FAQ @ Chibueze Maduka + Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If the input is Pat, the output is: Hello Pat and welcome to CS Online! TY 1.16.1: LAB: Input: Welcome message 0/10 [] main.py Load default template... 1 user_name = input() 2 3 ''' Type your code here. ''" &= Message Cente X | $x eCampus: Thar X | WA Content/cve X | ZY Section131-« X ZY Section1i7- X ZY Section120- X | $x eCampus:Oct X | A hips/mawe x | + ~v = Xx ¢& > CC @ learn.zybooks.com/zybook/CYB_130T_56153713/chapter/1/section/172content_resource_id=45966612 2 Y *» 0O 0 Q Maps 3 YouTube [J LTileunch & Overview - GEN/201... EB Checking Feedback -.. EB Checking assignment. & Home - Evaluate Sour. @ Linux Debugging inte. [J OverTheWire: Bandit ¢® Learning | Linux Journ... = zyBooks My library > CYB 130T: Object-Oriented Scripting Language home > 1.17: LAB: Input: Mad Lib |B zyBooks catalog @ Help/FAQ @ Chibueze Maduka + then the program uses the input values and outputs a story: Brenda went to Philadelphia to buy 6 different types of bells LB ry | 1.17.1: LAB: Input: Mad Lib ro [] main.py Load default template... # Read a value from a user and store the value in first_name first_name = input() # Output a short story using the four input values. Do not modify the code below. 1 2 3 4 # TODO: Type your code to read three more values here. 5 6 7 8 print(first_name, 'went to', generic_location, 'to buy', whole_number, ‘different types of', plural_noun)| rrp Run your program as often as youd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the a &= Message Cente X | $x eCampus: Thar X | WA Content/cve X | ZY Section131-« X ZY Section1i7- X ZY Section120- X | $x eCampus:Oct X | A hips/mawe x | + ~v = Xx ¢& > CC @ learn.zybooks.com/zybook/CYB_130T_56153713/chapter/1/section/172content_resource_id=45966612 2 Y *» 0O 0 Q Maps 3 YouTube [J LTileunch & Overview - GEN/201... EB Checking Feedback -.. EB Checking assignment. & Home - Evaluate Sour. @ Linux Debugging inte. [J OverTheWire: Bandit ¢® Learning | Linux Journ... = zyBooks My library > CYB 130T: Object-Oriented Scripting Language home > 1.17: LAB: Input: Mad Lib |B zyBooks catalog @ Help/FAQ @ Chibueze Maduka + then the program uses the input values and outputs a story: Brenda went to Philadelphia to buy 6 different types of bells LB ry | 1.17.1: LAB: Input: Mad Lib ro [] main.py Load default template... # Read a value from a user and store the value in first_name first_name = input() # Output a short story using the four input values. Do not modify the code below. 1 2 3 4 # TODO: Type your code to read three more values here. 5 6 7 8 print(first_name, 'went to', generic_location, 'to buy', whole_number, ‘different types of', plural_noun)| rrp Run your program as often as youd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the a §= Message Cent: X | §¢ cCompusThr X | BA Comtent/Cve X | ZY Section131- X ZY Secton128- X ZY Section120- X | §r eCampusoct X | J hitpssmwme X | + v= X & > C @ learzybooks.com/zybook/CYB_130T 56153713 /chapter/1/section/29 2 x » O00@ : Q Maps 3 YouTube [J LTileunch & Overview - GEN/201... EB Checking Feedback -.. EB Checking assignment. & Home - Evaluate Sour. @ Linux Debugging inte. [J OverTheWire: Bandit ¢® Learning | Linux Journ... = zyBooks My library > CYB 130T: Object-Oriented Scripting Language home > 1.29: LAB: Divide by x |B zyBooks catalog @ Help/FAQ @ Chibueze Maduka + 17 NOTE TIS SECTION OT your TEXTDOOK CONTAINS aCTIVITIES NAT yOu WII COMPETE Tor POINTS TO ensure your Work IS Scored; please access this page from the assignment link provided in Blackboard. If you did not access this page via Blackboard, please do so now. Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250 Note: In Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded). wry | 1.29.1: LAB: Divide by x 0/10 main.py Load default template... 1 ''' Type your code here. ''' 2 §= Message Cent: X | §¢ eCompusThr X | BA Comtent/Cve X | ZY Section131- X ZY Secton130- X ZY Section120- X | §r eCampusoct X | J hitpssmwme X | + v= X & > C @ leamzybooks.com/zybook/CYB_130T_56153713/chapter/1/section/30 2 x » O00@ : Q Maps 3 YouTube [J LTileunch & Overview - GEN/201... EB Checking Feedback -.. EB Checking assignment. & Home - Evaluate Sour. @ Linux Debugging inte. [J OverTheWire: Bandit ¢® Learning | Linux Journ... = zyBooks My library > CYB 130T: Object-Oriented Scripting Language home > 1.30: LAB: Driving costs |B zyBooks catalog @ Help/FAQ @ Chibueze Maduka + Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('{:.2f} {:.2f} {:.2f}".format(your_valuel, your_value2, your_value3)) Ex: If the input is: 20.0 3.1599 Then the output is: 3.16 11.85 79.00 Note: Real per-mile cost would also include maintenance and depreciation. TY 1.30.1: LAB: Driving costs 0/10 main.py Load default template... 1 ''' Type your code here. ''' 2
Answered Same DayOct 25, 2022

Answer To: Ge MessageCent X | § eCampusiThar X | BA Content/Cve, X | ZV Section131- X«> cZY Sectionit6- X...

Kshitij answered on Oct 25 2022
45 Votes
1. Print(user_name)
2. generic_location= input()
whole_number=input()
plural_noun=input()
3. use
r_num= int(input())
x=int(input())
b=user_num//x
print(b,end=" ")
b=b//x
print(b,end="")
b=b//x
print(b)
def driving_cost(driven_miles, driven_miles_per_gallon, dollers_per_gallon):
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here