Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a single question. Code in python plz The wonderful company, SpaceZ, is a fictional company that makes its money by providing orbital services

This is a single question. Code in python plz

The wonderful company, SpaceZ, is a fictional company that makes its money by providing orbital services (aka, blasting rockets into space). They have an aggressive marketing department trying to get all possible launches filled. There are 6 customers that the marketing department tracks. SpaceZ offers a range of services including manned spaceflight at various cost levels as shown below:

Orbital Services:

Service Code: ORB1

Description: Launch one satellite to low earth orbit; weighing less than 9 metric tons.

Short Description: Satellite: LEO

Fee: 65,000,000

Sales Commission: 0.1%

1st Stage Recovery: Land

Service Code: ORB2

Description: Launch one satellite to geostationary orbit; low earth orbit weighing less than 5.5 tons.

Short Description: Satellite: GSO

Fee: 67,000,000

Sales Commission: 0.12%

1st Stage Recovery: Land

Service Code: ORB3

Description: Launch one satellite to sun synchronous orbit; weighing less than 5 tons.

Short Description: Satellite: SSO

Fee: 72,650,000

Sales Commission: 0.12%

1st Stage Recovery: Sea

Service Code: ISS5

Description: Launch 5 tons of cargo to a space station; in an inclined orbit.

Short Description: Satellite: 5T

Fee: 76,137,129

Sales Commission: 0.09%

1st Stage Recovery: Sea

Service Code: MOON2

Description: Two space tourists to fly sound the moon accompanied by an experienced astronaut.

Short Description: Tourist: Moon

Fee: 98,000,000

Sales Commission: 0.13%

1st Stage Recovery: Land

If the 1st stage is recovery by sea then an additional $165,000 cost of recovery is taken into consideration before Sales Commissions are applied.

The company CODC is part owned by SpaceZ so no sales commissions are given to marketing for CODC launches.

Customers:

Code: ESAA

Name: Europe Systems Alternative Agency

Contact Name: Jean-Claude Junxer

Address: 23 Razor Road Belconnen ACT 2617

Launch 1: ORB1, 30/04/2019

Launch 2: ORB1, 31/10/2019

Code: NASHA

Name: National Air Space Hash Agency

Contact Name: Jimmy Briden

Address: 2 Mashup Drive Bruce ACT 2617

Launch 1: ORB3 28/04/2019

Launch 2: ISS5, 7/3/2020

Code: ASA

Name: Aussie Space Agency

Contact Name: Megan Clock

Address: Flat 31/a, Bax Units Stix st Marble bar 6760

Launch 1: None

Launch 2: None

Code: TICK

Name: Tick Incorporated

Contact Name: Mark Watson

Address: 87 Race drive Bathurst 2795

Launch 1: ORB1,2/3/2020

Launch 2: ORB2,19/3/2020

Code: BINC

Name: Byer Private Space Incorporated

Contact Name: Marillyn Hewson

Address: 212 Webly Drive Canowindra NSW 2804

Launch 1: MOON2, 12/12/2023

Launch 2: None

Code: CODC

Name: Corporate Space Trust

Contact Name: Zhang Chen

Address: 212 Scorch Drive Beltana SA 5730

Launch 1: ORB2, 21/3/2020

Launch 2: MOON2, 19/12/2023

Write a python code to build a system that helps with customer management by providing the following services:

A clear easy to use main menu which should include the following options

1. Audit Report: It lists the basic information on which the program works. Display the details of all the Orbital Services and details of all the Customers.

image text in transcribed

2. Customer Letter: It can automatically write a friendly letter to customers with customised name and address and launch details for a given year.

The letter has quite specific formatting requirements on the This years and Future services lines specifically:

Based on date entered services from past years should not be shown.

There could be 1 or 2 lines of this years services

There could be 1 or 2 lines of future services

If there are no services, this year it should say No service this year (note None is not ok)

If there are no future services, it should say No future services (note None is not ok)

Note: Also that input errors should be detected (e.g. a company code of FRED or a year of 29919)

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

3. Commission Report: It produces a commission report showing the commission that a customer generates for the currently scheduled launches.

If the 1st stage is recovery by sea, then an additional $165,000 cost of recovery is taken into consideration before Sales Commissions are applied. This is a way of encouraging salespersons to sell the cheaper land recovery services hence it is subtracted before commission is calculated.

Sample Commission calculation for ESAA ORB 1. (Land recovery)

65,000,000 * 0.1 /100 = $65,000

Commission is : $65,000

Sample commission calculation for NASHA ORB3 (sea recovery)

Because its a sea recovery we deduct 165,000 before the calculation

(72,650,000-165,000) *0.12/100 = $86,982

Commission is : $86,982

Sample commission calculation for CODC ORB3 (sea recovery)

Commission is : $0

image text in transcribed

4. Launch Schedule: It produces a launch schedule for the Rocket Engineers that launch the rockets. This schedule is for a given year and shows the date and type of launch for all customers with a launch in that year.

This schedule is for a given year entered by the user and shows the date and type of launch for all customers with a launch in that year.

image text in transcribed

a) Create the Customer Class to store customers data

b) Create the Services Class to store orbital services data

c) Create a Menu

d) Based on the menu option create a different function for each of the menu functions.

Audit Report Sample Example: Example letter 1: betechuptwon,1LetterServicePleaseinputcustomercode:esaaPleaseinputyear(eg2e19):2819 To: From : Spacez Europe Systens Alternative Agency 23 Razor Road Beleonnen ACT 2617 SpaceZ yearly services update 2919 Dear Jean-claude Junxer, we wish to advise you that the orbital services you have requested are being readied for delivery as scheduled (see the schedule below). This years services ; ORB1 Satel1ite:LEO 3/84/219 ;ORB1 Satellite:LEO 31/18/2919 Future services: No future services Should you have further requirements please contaet our sales representative. Regards Djon Musk, Services manager Example letter 2: Select option: Letter Service Please input customer code:binc Please input year (eg 2819):2819 To: From: Spacez Byer private space Incorporated 212 webly drive Canowindra NSW 2884 SpaceZ yearly services update 2019 Dear Marillyn Hewson, we wish to advise you that the orbital services you have requested are being readied for delivery as scheduled (see the schedule below). This years services :No service this year Future services: MOON2 Tourist: Moon 12/12/2023 Should you have further requirenents please contact our sales representative.Regards Djon Musk, Services nanager Example 3 - future date Select Option: 1 Letter Service Please input custoner code:esaa Please input year (eg 2619):2628 To: From: SpaceZ Europe Systems Alternative Agency 23 Razor Road Belconnen ACT 2617 Spacez yearly services update 2028 Dear Jean-Claude Junxer, we wish to advise you that the orbital services you have requested are being readied for delivery as scheduled (see the schedule below). This years services :No service this year Future services: No future services Should you have further requirements please contact our sales representative. Regards Djon Musk, Services manager Select Option: Letter Service Please input customer code:binc Please input year (eg 2019):2823 To: Fron: SpaceZ Byer private space Incorporated 212 webly drive Canowindra NSW 2884 SpaceZ yearly services update 2823 Dear Marillyn Hewson, we wish to advise you that the orbital services you have requested are being readied for delivery as scheduled (see the schedule below). This years services :MOON2 Tourist: Moon 12/12/2623 Future services: No future services Should you have further requirements please contact our sales representative. Regards Djon Musk, Services manager Example 5: error input(check for input validation and error) SpaceZ Marketing Menu E=Exit A - Audit Report L - Customer Letter C - Comaission Report S - Launch Schedule Select Option: c Commission report Please input custoner code:fred ERROR INVAL ID CUSTOMER CODE Spacez Marketing Menu E=EX1t A - Audit Report L - Customer Letter C - Comnineion Report S - Launch Schedule Select Option: Example output Screen Example Launch schedule (for 2020)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions