Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Normal T No Spac.. Heading1 Heading2 Title Subtitle Subtle Em... Emphasis Intense E. StrongQuote Styles COP 2270 -Introduction to C for Engineers Programming Assignment

image text in transcribed
image text in transcribed
1 Normal T No Spac.. Heading1 Heading2 Title Subtitle Subtle Em... Emphasis Intense E. StrongQuote Styles COP 2270 -Introduction to C for Engineers Programming Assignment 4 Due On: 312/2019 It is the year 2035, the MatsXSpace Vehicles Company has recently made its X-2 single use Space Transportation Systems (STS) available to the general public. Anyone can purchase the STSs to travel to the nearest celestial bodies (government permits and fees not included). The company has asked you to write a program that calculates the amount (in S) the customers owe for the purchase of the STSs. First, your program should welcome the customer with some fancy message (be creative). Then, the program must present the customer with a menu with two options as follows Please Enter One of the Following: 1- Purchase X-2 STS 2- Quit .If the customer chooses option 1, prompt him/her asking how many STSs he/she would like to purchase AND if he/she is a member of the Interplanetary Travelers Club. Display the amount he/she owes, including some fancy thank you message, keeping the following in mind o If customer purchases 4 STSs or less, the cost of each STS is $1.0 107 o For all purchases above 4 STSs (5 and above), the cost of each STS is $8.0 10 o If the customer is a member of the Interplanetary Travelers Club, he/she receives an extra 10% discount and free fuel for one of the STSs (make sure to display a message informing the customer of this). Customers cannot be allowed to enter a number smaller than 1 o .The program will redisplay the menu until the customer enters option 2 (Hint: use do...while loop) . If the customer enters option 2, Quit the program. . Validate for incorrect inputs (Hint: use while loops). If the user enters incorrect answers 5 times quit the program Enjoy up Vies Help Fosit POF Tell me what you want to do 1 Heading 2 ite Subtitle Subtle Em... Emphasis Intense E.. Strong Quote Styles Sample outputs (please don't make yours exactly like this one, use some creativity): Welcome to MarsX Space Vehicles Online Store Please Enter One of the Following 1- Purchase MXSV-2 STS 2- Quit 1 [Enter] How Many MXSV-2 STSs Would You Like to Purchase? 10 [Enter] Are You a Member of the Interplanetary Travelers Club (y)? y [Enter] Thank You for Your Purchase: Your Total is $72,000,00000. You Saved $8,000,000.00 Today!! * You Get Free Fuel for One of Your STSs Your free fuel voucher will arrive with the delivery of your first STS Please Enter One of the Following 1- Purchase MXSV-2 STS 2- Qust 2 [Enter] Press any key to continue Sabmission guidelines: Send your Assignment4.c file as attachment to my email (reruz2@mdc edu). with the subject Assignment 4 ip

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_2

Step: 3

blur-text-image_3

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

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

4. What are the current trends in computer software platforms?

Answered: 1 week ago