Create a method to display the available seats

Assignment Help Programming Languages
Reference no: EM132331703

Note 1

You are advised to use only the C# concepts taught in this Unit through Lectures and Tutorials.Otherwise, you will incur a penalty and could get zero.

Problem Specification:
Your programming task is to design and develop a console application for an airline company that issuesboarding passes for an aircraft with 40 seats. You have to design and develop a C# object-oriented solution for this task.

The application requires a class called Passenger that contains passenger information and allocates a seat number based on seat availability to each passenger. The data attributes for the passenger class includes, but not limited to, a security number, departure time, departure gate and other attributes that are required to issue a boarding pass.

You need to construct methods to obtain all information necessary fromthe passengers.

Your application must meet all the following requirements and handle all run time errors. 50% of the marks allocated for each requirement will be deducted if your program cannot handle the errors.

1. Passenger names should not be longer than 5 characters.

The passenger name (i.e. first and last) should be trimmed or truncated to 5 characters if the name provided is greater than 5 characters.

2. Security number on boarding pass should be a random number generated between 30,000 and 999,999.

3. Each seat number must only be allocated to one passenger. For example, if the seat number 14 is allocated to a passenger, then the seat number 14 should not be available for the any other passenger.

4. The application will continually accept passenger requests; the passenger attributes may vary from passenger to passenger (e.g.each passenger is a new object). Your application should also be able to handle a number of the passengers in a single invoice. For example, Mr John Smith may have bought two tickets for his wife and himself in single invoice. This means the application should be able to accept and allocate adjacent seats for the two passengers.

5. If all seats have been allocated to passengers, the application should not accept any more requests.Notify the Airline Assistant.

6. Date and Time should be printed when passenger entries are completed.
(e.g., system time 24 April2019).

7. You should have a method (part of the Passenger class) to list all the passenger names followed by their seat numbers and the security numbers once the flight is closed.

8. After check-in is completed, boarding passes must be displayed in a tabular format for each passenger.

9. Create a method to display the available seats to the Airline Assistant on request anytime. This method should be part of the Passenger class and will be invoked from the Main() method.

Note 2
1. You are required to use the Object-Oriented concepts from C# taught in Lectures and Tutorials.

You are required to create only one class-Passenger, a number of data fields, corresponding properties, the necessary constructors and the required methods.

All display methods should be Read Only.

2. Your program must generate an appropriate error message if any input does not follow the required criteria and then request the user to re-enter the input.

Attachment:- Project - Programming.rar

Verified Expert

This assignment solved in the using the C# Programming Lanugauage as per the Assignment requirments. Using C# all problem solved as per the assignments. All question solved in this assignment. This assignment is about on passenger information that is solved using C# programmings.

Reference no: EM132331703

Questions Cloud

Research in a career such as cybersecurity : How can I support my project plan with credible, current, reliable, accurate, and relevant information?
What approaches could have yielded additional valuable : How did participating in discussions help your understanding of the subject matter? What approaches could have yielded additional valuable information?
List of files and subdirectories in a directory : What CLI command can be used to display a list of files and subdirectories in a directory?
Compare equivalent expressions written both in radical form : In this discussion, you will simplify and compare equivalent expressions written both in radical form and with rational (fractional) exponents.
Create a method to display the available seats : IFN501 - Programming Fundamentals - Queensland University of Technology - Project (Programming) - create only one class-Passenger, a number of data fields
Typical hybrid network architecture design : What are the essential features of a typical hybrid network architecture design?
Components of a typical p2p application : "What are the key components of a typical P2P application? Describe their functions.
Values of the equation coefficient a : 1.) Prompt the user for the values of the equation coefficient A, B, and C 2.) Promt the user for the range of the integral. (a and b in the picture)
Benefits of the cloud to businesses : What is cloud computing and the benefits of the cloud to businesses.

Reviews

len2331703

7/2/2019 1:48:49 AM

2) CodeDemonstration (5%) – during scheduled practical sessions in Week 13 (a) You will be asked to execute your code by inputting data provided by us during the practical sessions. (b) You will be asked to do modifications to your original code to perform the same functionality. (c) Non-attendance to this session for the code demonstration will result in zero mark for this part.

len2331703

7/2/2019 1:48:41 AM

1) Program Code (25%) Zip your project file and upload this zipped file onto BB using Assessment 2 Part 2link under Assessment. The link will be available only from .You can only uploadonce. • Your programcode will be evaluated by: a) Assessing the conformance of the submitted program to the functional requirements outlined above. Does the program meet all these requirements, and how well? b) Assessing the "means" of accomplishing the task by examining the program structure, style, clarity and conciseness, and if your code is written in a way that is clear and maintainable.

len2331703

7/2/2019 1:48:25 AM

1. Assessment submitted after the due date without an approved extension will not be marked and will receive a grade of 1 or 0%. If special circumstances prevent you from meeting the assessment due date, you can apply for an extension student services in the Faculty. If you do not have an approved extension, it is recommended that you submit the work you have completed by the due date, and it will be marked against the assessment criteria. 2. You are allowed to bring only the softcopy of the codeyou submitted online to your practical session; no notes are allowed.

Write a Review

Programming Languages Questions & Answers

  Occurrence of the longest substring of capital

Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Write down an application with three labeled text elds one

write an application with three labeled text ?elds one each for the initial amount of a savings account the annual

  Accepts two int arguments and returns their sum

Assume the availability of a class named Arithmetic that provides a static method , add , that accepts two int arguments and returns their sum .

  Why the teller application can call the withdraw methods

Explain why the Teller application can call the withdraw and deposit methods using a SavingsAccount object reference, even though we did not define these methods.

  Calculate and displays chair hire cost

NIT5150 Advanced Object Oriented Programming - Victoria University - Create a C# application that calculate and displays chair hire cost for N number

  Logic for a program that performs arithmetic functions

Create the logic for a program that performs arithmetic functions. Design the program to contain two numeric variables. Prompt the user for values for the variables

  Write a program that takes a single directory as an argument

Write a program that takes a single directory as an argument, and iterates through all the normal files in the directory, and concatenate them to standard out.

  Write a program to input the temperature in celsius

Write a program to input the temperature in Celsius and convert it to Fahrenheit. Try your program with C = -40°, C = 20°, and C = 100°

  C# application that creates an animal using basic graphics

Write a C# application that creates an animal, plant or building of your design, using basic graphics methods such as DrawRectangle(), DrawLine(), DrawEllipse(), DrawArc() and DrawPie().

  Write a function to count the number of times occur

Write a main function to input 20 integers in the range of 1 to 6. Write a function to count the number of times the number 2 and 5 occur. The function should declare static variables count2 and count5. Check the data validity in the main function..

  Write the program to model simple calculator

Write the program to model the simple calculator. Each data line must consist of next operation to be performed from list below and right operand.

  Write a program which validates that the entry is a integer

Write a program which: Asks the user to enter a positive integer greater than or equal to 0, Validates that the entry is a positive integer and Outputs the digits in reverse order with a space separating the digits.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd