ENROL WITH IFN501 PROGRAMMING FUNDAMENTALS ASSIGNMENT HELP AND HOMEWORK WRITING SERVICES OF EXPERTSMINDS.COM AND GET BETTER RESULTS IN IFN501 PROGRAMMING FUNDAMENTALS ASSIGNMENTS!
IFN501 Programming Fundamentals - Queensland University Of Technology
Question: Design and develop a console application for an airline company that issues boarding 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.
Answer:
24/7 AVAILABILITY OF TRUSTED IFN501 PROGRAMMING FUNDAMENTALS ASSIGNMENT WRITERS! ORDER ASSIGNMENTS FOR BETTER RESULTS!
using System;
class Passenger
{
static void Main(string[] args)
{
//Passenger p = new Passenger();
Console.WriteLine("======================================");
Console.WriteLine("| Welcome to Airline |");
Console.WriteLine("| 1. Seat Booking |");
Console.WriteLine("| 2. Passenger Info |");
Console.WriteLine("========================================");
Console.WriteLine(" Enter Your Choice |");
int ch=Convert.ToInt32(Console.ReadLine());
if(ch==1)
{
Passengerinfo();
//string result = Passengerinfo();
//Console.WriteLine(result);
}
//Console.WriteLine("Press Enter Key to Exit..");
if(ch==2)
{
seatavailable();
}
//Console.ReadLine();
}
public static void Passengerinfo()
{
string name;
int seat_no=0;
int sec_no=0;
Console.WriteLine("Enter Passenger Name");
name=Console.ReadLine();
if(name.Length>4)
{
name=name.Substring(0,4);
}
//Console.WriteLine("Security Number");
Random sec_no1=new Random();
sec_no=sec_no1.Next(30000,99999);
//sec_no=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Seat No");
seat_no=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Passenger Name\t\t\t Security Number\t\t\t Seat_Number");
Console.WriteLine(name +"\t\t\t\t\t\t\t\t"+sec_no+"\t\t\t\t\t"+seat_no);
}
public static void seatavailable()
{
int totalseat=40;
int seats=0;
int availseat=0;
Console.WriteLine(" Total Seats Available "+totalseat);
Console.WriteLine(" How many seat you want to book");
seats=Convert.ToInt32(Console.ReadLine());
availseat=totalseat-seats;
for(int i=0;i<seats;i++)
{
Passengerinfo();
}
Console.WriteLine("Available Seat after Booking"+availseat);
}
}
GET GUARANTEED SATISFACTION OR MONEY BACK UNDER IFN501 PROGRAMMING FUNDAMENTALS ASSIGNMENT HELP SERVICES OF EXPERTSMINDS.COM - ORDER TODAY NEW COPY OF THIS ASSIGNMENT!
Get the best Queensland University of Technology Assignment Help services for its academics units and courses such as:-
- IFN502 IT Innovation and Disruption Assignment Help
- IFN551 Computer Systems Fundamentals Assignment Help
- IFN515 Fundamentals of Business Process Management Assignment Help
- IFN503 Fundamentals of Computer Systems Assignment Help
- IFN561 Enterprise Systems Lifecycle Management Assignment Help
- IFN521 Foundations of Decision Science Assignment Help
- IFN663 Advanced Enterprise Architecture Assignment Help
- IFN507 Network Systems Assignment Help
- IFN541 Information Security Management Assignment Help
- IFN509 Data Exploration and Mining Assignment Help
- IFN591 Principles of User Experience Assignment Help