Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project # 2 This assignment focuses on the design, implementation and testing of a Python program which uses control structures to solve the problem described
Project #
This assignment focuses on the design, implementation and testing of a Python program which uses control
structures to solve the problem described below.
Important Note about submission
Deliverables
The deliverable for this assignment is the following file:
projpy your source code solution
Be sure to use the specified file name and to submit it for grading via Codio before the project deadline.
You can just copy and paste your code into the coding window in Codio.
We provide a zip file in the course website that you need to download into your computer, unzip the file,
and open it in PyCharm similar to the lab to access the starter code.
Assignment Overview
learning objectives
This assignment will give you more experience on the use of:
integers int
conditionals
iteration
inputoutput
Assignment Specifications
With the interstellar excitement of upcoming space travels with NASA and SpaceX, the cosmic teams are
working tirelessly to implement final enhancements and explore innovative concepts! The twist? They've
decided to code these enhancements in Python, not in C# One fascinating concept on the table is the possibility
of renting spacecrafts, but there's a need for a sophisticated calculator to make it happen! Project is set to
revolutionize how information is computed and displayed for SpaceX that rents spacecrafts to its astronaut
customers. The program will efficiently calculate and showcase the cost of spacecraft rental for a specified
customer.
This assignment is worth points of course grade and must be completed before : PM
EST on Monday, January nd
After the due date, your score will be deducted by for every hours late or a fraction of it No
submissions will be accepted after hours from the due date. The penalty will be applied on the
full project score.
The project will be automatically submitted by the due date If you want to keep working on it
after the deadline with penalty, you must manually click on Mark as uncompleted acknowledge the
penalty message and manually click on Mark as completed when done.
The program should start by asking the user if they want to continue. The answer is Y for yes or X for
no You can check the value with Boolean expressions such as
answer Y
or
answer Y
It will then continue to prompt the user to enter the following four items for a given customer in the
specified order and use the prompts provided in the strings.txt file or the starter code:
a The galactic code a string
b Days of your interstellar joyride an integer
c Odometer at liftoff an integer
d Odometer at touchdown an integer
It will then process that customerastronaut information and display the results. At the end, the program should
ask the user if they want to process another request, and it will keep asking until the user enters X
The program will compute the amount of money that the astronaut will be billed, based on the galactic code,
number of days of the joyride, and number of lightyears travelled. A lightyear is a unit of length used to
express astronomical distances and it is equal to about trillion miles. The amount billed to the astronaut is the
sum of the base charge and the lightyear charge. The program will only recognize upper case letters for the
following galactic codes.
Code XVXylophone Voyager: Embark on a cosmic symphony with the Xylophone Voyager! This
interstellar adventurer not only explores the galaxies but also plays a harmonious tune through the
cosmos The sound of laughter and xylophone notes will resonate in every star system.
base charge float: $ for each day
lightyear charge float: charge an additional $ for each lightyear driven.
Code ETExtraterrestrial Explorer: Meet the Extraterrestrial Explorer, your guide to uncharted
celestial wonders! This intrepid traveler goes beyond Earthly boundaries, discovering new realms and
sharing cosmic tales. Brace yourself for an outofthisworld journey with ET at the helm.
base charge float: $ for each day
lightyear charge float: it depends on the number of lightyears driven:
no charge if the average number of lightyears driven per day is lightyears or less;
otherwise, charge an additional $ for each lightyear driven above the lightyear per
day limit
Code SISpace Invader: Beware the Space Invader! This mischievous intergalactic being has a
knack for infiltrating space lanes with humor and fun. Buckle up as the Space Invader takes you on a
laughterfilled adventure, leaving a trail of cosmic giggles behind.
base charge: $ for each week or fraction of a week Note: if you rent for days that is
more than one week so the base rate is for weeks hint: use math.ceil
lightyear charge: it depends on the number of lightyears driven:
no charge if the average number of
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started