Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help please # # Computer Project 02 # DONGUIAWNG INTERGALACTIC_BANNER = ! !1 1 Welcome to Spacex Galactic Car Extravaganza! 10 Prepare for an

Need help please

image text in transcribedimage text in transcribedimage text in transcribed
# # Computer Project 02 # DONGUIAWNG INTERGALACTIC_BANNER = "! !1 1 Welcome to Spacex Galactic Car Extravaganza! 10 Prepare for an interstellar joyride with our cosmic cruisers! 11 At the prompt, please enter: 12 - Galactic code (XV, ET, SI) 13 - Days of your interstellar joyride 14 - Odometer at liftoff 15 - Odometer at touchdown 16 17 18 ":-Ready for an out-of-this-world adventure (Y/X) ? ~:" 19 "\ *** Invalid galactic code. Retry! ***" 20 "\ : ~Galactic code (XV, ET, SI) ~;" 21 "\ : ~Number of days (int) ~; " 22 \ : ~Odometer at liftoff (int) ~;" 23 "\ : ~Odometer at touchdown (int) ~:" 24 "\ Thank you for entrusting us with your joyride!" 25 26 27 "\ Galactic traveler summary:" 28 "\\tcode: {}" 29 \\tDays in orbit: { }" 30 "\\tLiftoff odometer: {}" 31 "\\tTouchdown odometer: {}" 32 "\\tLight-years traveled: {}" 33 "\\tCost in star credits: ${}" 34 35 36 37 38 def main() : 39 print (INTERGALACTIC_BANNER) 40 pass 41 42 43 _ _name__ == '__main_' : 44 main ( ) 45Test 1 Welcome to Spacex Galactic Car Extravaganza! Prepare for an interstellar joyride with our cosmic cruisers! At the prompt, please enter: - Galactic code (XV, ET, SI) Days of your interstellar joyride - Odometer at liftoff Odometer at touchdown :-Ready for an out-of-this-world adventure (Y/X) ? -:* Thank you for entrusting us with your joyride! Test 2 Welcome to Spacex Galactic Car Extravaganza! Prepare for an interstellar joyride with our cosmic cruisers! At the prompt, please enter: - Galactic code (XV, ET, SI) - Days of your interstellar joyride Odometer at liftoff - Odometer at touchdown :-Ready for an out-of-this-world adventure (Y/X) ? -:y :~Galactic code (XV, ET, SI) ~ :ET :-Number of days (int) -: 1 :-Odometer at liftoff (int) ~: 100003 :-Odometer at touchdown (int) ~ :100135 Galactic traveler summary: Code : ET Days in orbit: 1 Liftoff odometer: 100003 Touchdown odometer : 100135 Light-years traveled: 13.2 Cost in star credits: $60.00 :-Ready for an out-of-this-world adventure (Y/X) ? -:Y :-Galactic code (XV, ET, SI) -:et : -Number of days (int) -:4 :~Odometer at liftoff (int) ~ : 101010 :"Odometer at touchdown (int) ~ :108200 Galactic traveler summary: Code: ET Days in orbit: 4 Liftoff odometer: 101010 Touchdown odometer : 108200 Light-years traveled: 719.0 Cost in star credits: $319.75 :-Ready for an out-of-this-world adventure (Y/X) ? -:Y:-Galactic code (XV, ET, SI) - :ET :-Number of days (int) -:2 :-Odometer at liftoff (int) -:002000 :-Odometer at touchdown (int) -:004000 Galactic traveler summary: Code : ET Days in orbit: 2 Liftoff odometer : 2000 Touchdown odometer: 4000 Light-years traveled: 200.0 Cost in star credits: $120.00 -Ready for an out-of-this-world adventure (Y/X) ? ~:Y :-Galactic code (XV, ET, SI) ~ : XV :-Number of days (int) ~: 3 : "Odometer at liftoff (int) ~: 999997 :-Odometer at touchdown (int) ~:000005 Galactic traveler summary: Code: XV Days in orbit: 3 Liftoff odometer: 999997 Touchdown odometer : 5 Light-years traveled: 0. 8 Cost in star credits: $120.20 :-Ready for an out-of-this-world adventure (Y/X) ? ~:* Thank you for entrusting us with your joyride! Test 3 Welcome to Spacex Galactic Car Extravaganza! Prepare for an interstellar joyride with our cosmic cruisers! At the prompt, please enter: - Galactic code (XV, ET, SI) - Days of your interstellar joyride - Odometer at liftoff Odometer at touchdown :-Ready for an out-of-this-world adventure (Y/X) ? ~: Y :-Galactic code (XV, ET, SI) -:SI :-Number of days (int) -: 8 :~Odometer at liftoff (int) -:000100 :"Odometer at touchdown (int) -:040100 Galactic traveler summary: Code : SI Days in orbit: 8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Write a short note on - JUDICIARY

Answered: 1 week ago

Question

Explain Promotion Mix.

Answered: 1 week ago

Question

Explain the promotional mix elements.

Answered: 1 week ago