Question Details

[answered] Abstract You work in a travel company and are upgrading the


Abstract
You work in a travel company and are upgrading the programs they use to make reservations. Reservations are made by customers for hotel rooms at different destinations. The reservations also include the airline ticket information. However, this information is stored in several different tables in the database. Your project manager informs you that you have to model the classes in your program based on the tables in the database..but that saving the information and reading them will be done later.
.....You ask one of the other programmers how to do this and your coworker says "What you need to do is to have the Flight and Room as separate classes and then make a Reservation class that has one of each of them as internal objects. The system is going to be passing all of them together to different places too and it would be better to do it as a composite object because thats the way we think about it in our company."


* Create a class called Flight with a FlightID (String) and price (double). Include a constructor and all get() and set() methods.

* Create a class called Room with a RoomID (String), HotelName(String), DaysReserved(String to keep it simple here) and price (double). Include a constructor and all get() and set() methods.

* Create a class called Reservation that has a Flight Object, Room Object and a CustomerID(String). Include a constructor, get() and set() methods for the CustomerID(). You may include get() and set() methods for the Flight and Room objects to work with them like will be shown in a class example -or- create the objects first and pass them in through the constructor(Either way is fine and it is completely up to you.)
..Also create a toString() method in the Reservation that reports the reservation price of the flight and the room that are inside it added together, as well as all of the other information including the CustomerID, FlightID, RoomID, HotelName, and DaysReserved.



Note on common errors on this assignment in past include:
Do not have a double variable to store a price in the Reservation.
Do not have a FlightID, RoomID, HotelName, or DaysReserved in Reservation.
(This data is all stored in the internal objects. Having them in the outer class and not using these values stored in the inner classes will be a major deduction.

*Create a class called ReservationTest that creates 2 Reservations with all of their values, then prints out all of the information for that reservation to the screen for the user.

You do not have to get the data from the user to put inside of these reservations. You can hard code the values .


namespace Flight_Program

 

{

 

class Flight

 

{

 

public string FlightID { get; set; }

 

public decimal price { get; set; }

 

/// <summary>

 

/// Constructor

 

/// </summary>

 

/// <param...

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 18, 2020

PRICE: $15

Solution~0001003923.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