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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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