Assignment Briefing:
The wonderful company, SpaceY, is a fictional company that makes its money by providing orbital services (aka, blasting rockets into space). Recently in a
well televised event
the CEO has started to take bookings for a trip to Mars in two forms; one-way and return (there and back again).
They have three lift vehicles Hawk-9, Hawk Heavy and the BFR. They offer a range of services including manned spaceflight at various cost levels as shown in the table below. Bulk discounts have been discontinued but the CSO orbit class services have been added.
Space vehicles can be launched into any orbit – but standard prices include LEO (low earth orbit), GTO (Geosynchronous Transfer Orbit) and CSO (CircumSolar Orbit).
After the
well televised event
the CEO announced a new product line-up. Smarting from all the software changes, his computer team has decided to put the product range into a file that can be easily updated. After a case of fraud, they now want a check that those booking
big ticket
items can afford it. Credit checking is performed by maintaining a customer file and a credit limit for each customer (specifically, the quotation must show the customer ID and customer name and record the date the credit check was made).
Furthermore
they also want an HTML form of the quote written to a file.
You program needs to do the following (also see marking rubric below)
• Input the client Id and re-input it if it fails edit checking
• Input the service code and re-input it if it fails edit checking
• Input the number of launches (1 to 20)
• Ask if a nitrogen flush is needed (only if the service offers a nitrogen flush) – apply the cost – only one flush is permitted per launch
• If appropriate for the service code, ask for the orbit type required
• If it’s an unmanned spaceflight ask if insurance is wanted
• If insurance is wanted then ask payload value
• Compute the insurance value if relevant
• Compute taxation for unmanned flights
• Compute the NESA charges
• Compute the final total
• Do a credit check on the client to be sure they can pay for it
• Print the quote including today’s date as the date of the credit check
The intention is that this is an extension of the previous assignment. It’s the “Space Y Quotation System V2”
I give you a new Quote class – you can alternatively modify the MT1 version.