Question Details

[answered] Lab 5: The Alpha Air Lines has three types of Tickets to ch


Lab 5:

The Alpha Air Lines has three types of Tickets to choose from for a certain season: Standard Ticket ($250), Economy Ticket ($350), and Business/First Class Ticket ($450).

Your program should present a menu that allows a user to choose the desired tickets, then calculates the cost of the tickets, and displays the related information of the tickets.

Find the Class and their Responsibilities that are necessary for the Air Lines problem.

(Hint: identify all the nouns in the description. Each of these might be a potential class).

At the minimum, your Class Declaration must include the following:

Member variables: Ticket Type, Ticket Price, Ticket Quantity.Member Functions: Constructor: Accepts three arguments which are used to initialize the Ticket Type, the Ticket Price, and Ticket Quantity member variables to their appropriate values.Set Ticket Quantity: Accepts an argument which is accumulated to the Ticket Quantity member variable.

  • Get Ticket Quantity: Returns the value stored in the Ticket Quantity member variable.

  • Get Ticket Price: Returns the value stored in the Ticket Price member variable.

  • Get Ticket Sub Total: Returns the product of the Ticket Quantity member variable multiplied by the Ticket Price member variable.

  • Get Tax: Returns the product of the returned value from Get Ticket Sub Total Function multiplied by the Global Constant Tax Rate.

In particular, you program must satisfy the following requirements in-order-to achieve the maximum credit:

Requirements:

Preferred to use the switch Statement, since it is a natural mechanism for building Menu Systems.Control the Outputs using <iomanip> Header File.Using function calls such as displaying the Menu function, Selection Sort, Binary Search, etc.Display a Menu (Types and Prices) to facilitate the selling process until the user wants to quit your program.Validate all User?s Inputs such as: Menu?s choice, number of tickets, etc.Display the number and the charges (before Taxes) for each type of Tickets at every time after the user picks a number for a type of Ticket; so the user can acknowledge the activities in the process of ticket purchasing. The Sub-Total, Taxes, and the Total Charge should be calculated and displayed on the screen as well.Accumulate the number and the charges for each type of Tickets at every time after the user picks a number for a type of Ticket; so the user can acknowledge the activities in the process of ticket purchasing. The Sub-Total, Taxes, and the Total Charge should be calculated and displayed on the screen as well.Run your Program about 10 times to capture the charges for each type of Tickets to an external file.Dynamic memory allocation (only possible through the use of pointers) for an array which is used to hold the data from the external file.Read the charges from a file your Program just created into the array you created in step 9. You should test for file open errors when open files for reading.Sort the charges ascending in the array using Selection Sort Algorithm.Allow a user to enter a number to be searched in the array using Binary Search Algorithm.

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 18, 2020

PRICE: $15

Solution~0001013020.zip (25.37 KB)

Buy this answer for only: $15

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy from our tutoring website www.aceyourhomework.com (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 18, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.

Order Now