Matlab assignment

User Generated

QNA23

Engineering

Description

I'm responsible for creating 1 user - defined function about my part

I attached the file for the assignment, U can see my part in the Screen Shot pic to be more clear for u, that talked about Event Option to create a table about what asked.

If u have any Q let me know, and also I can give u more days if it need to

Unformatted Attachment Preview

Engineering 102 Project 2 Vacation Program According to the Federal Aviation Administration there are 2.5 million passengers a day that travel via air. Many of these passengers book their own tickets using various websites. It is in an airline’s best interest to have a user-friendly, efficient website for their potential customers. XYZ airline has started a new service out of Pittsburgh, PA and has tasked your team with creating a program that allows users to book a vacation including hotels, car rental, and flights. All the trips arranged through XYZ airline run Sunday through Saturday. The program must remember the booking information so when someone else uses the program, they cannot book the same seat, same hotel room, etc. Customers should have the option to select their destination, plane seat location, hotel room location, car, event or they can let the program randomly assign any or all of them. If the user requests to manually select their location/seat/hotel room/car/event, a matrix of options should be displayed where X’s denote unavailable spots. The program must also allow customers to cancel any or all their reservations. Your team must have 4 different user-defined functions; one for the airline ticket, one for the hotel room, one car rental and one for an event. A driver code must also be created –The driver code must have an interface that guides the user through the booking process. The driver code also calls the appropriate functions and does the final computations along with displaying the requested outputs. XYZ provides service to five destinations and offers both coach and first-class seats (cost is per person): Destination Orlando, FL Honolulu, HI Los Angeles, CA New York City, NY Washington, DC Coach ($) 400 650 430 250 200 First Class ($) 600 850 630 450 400 Students will be required to create a matrix that represents a fuselage like the one below, F represents First Class, C represents Coach. There should be 5 separate fuselage matrices that represent each possible destination. F F F F F F F F F F F F C C C C C C C C C C C C C C C C C C C C C C C C C C C C Customers have the following hotel accommodation options: Accommodation Option Double Queen King Cost ($) 699 760 800 Students will be required to create a matrix that represents a hotel like the one below. Note: XYZ Airline has partnered with a hotel company so there is an identical hotel at each location in the below layout of the rooms Q represents rooms with Queen beds, K represents rooms with King beds and D represents rooms with double beds (Four people per room). There should be 5 separate hotel matrices that represent each possible destination. Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Q Q Q K K K D D D D D D Customers have the following rental car options: Accommodation Option Economy Compact Full-Size Cost ($) 500 600 750 Students will be required to create a matrix that represents the rental car parking lot like the one below. In the layout of the rental car parking lot below, E represents Economy, C represents Compact, and F represents Full-size. Each type of car has a maximum capacity of 5. There should be 5 separate car lot matrices that represent each possible destination. E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F E E E E C C C C F F F F Customers have the following event options (cost is per person): Event Helicopter Tour Musical Horseback riding Skydiving Cost ($) 50 25 100 150 Students will be required to create matrices for each event. HT represents the Helicopter Tour, M represents the Musical, H represents Horseback Riding and S represents Skydiving. Your program must allow members of your party to choose different events. Members are not allowed to attend multiple events, they can either choose 1 event or none. There should be 5 separate sets of matrices that represent each possible destination. HT HT M M M M H S S HT HT M M M M H S S HT HT M M M M H S S HT HT M M M M H S S M M M M H M M M M H M M M M M M M M M M M M M M M M M M M M Outputs:  The program must be able to output the number of open seats on each airplane, the number of available rental cars of each type, at each location, and the number of available hotel rooms of each type in each location whenever requested by the user. This output should be displayed in a table as below Seats on Plane Economy Compact Full-Size Single Cars Car Car Queen Avail. Avail. Avail. Bed Rooms King Bed Rooms Double Helicopter Musical Horseback Skydiving Bed Tour riding Room Orlando, FL Honolulu, HI Los Angeles, CA New York City, NY Washington, DC  The program must output a table such as the one shown below. (The user inputs will populate the booking column, for example the Type of Car would either by Economy, Compact, or Full-Size) Booking Specific Location Type of Car Type of Hotel Room Type of Event  Cost The program must output a statement that says “Congrats you successfully booked a vacation to XXXXX, you have reserved a XXXXX Hotel room, a XXXXX rental car, and have a total cost of XXXXX for the trip” Extra Credit (+5pts): Modify the program so it allows the user to control their budget. Initially ask the user their vacation budget and allow the user to progress through the booking process. The program should eliminate specific options (car types, specific hotel rooms, event types etc.) if the additional cost will break their budget. The final output should display a table such as the one shown below. Booking Specific Location Type of Car Type of Hotel Room Type of Event Total Cost Remaining Budget Cost DELIVERABLES a) MATLAB Code (20% function, 20% driver code): Deadline: 11/15/2018 11:59 PM. Each team member is responsible for creating 1 user-defined function which will be graded individually. The team will then create the driver code which will be graded as a group. The entire program (user-defined functions & driver code) will be submitted by one team member. b) Technical Report (35%): Deadline: 11/27/2018. One submission per team. Hardcopy in class and electronic copy uploaded to eCampus by the start of class time. c) PowerPoint Presentation w/Demo (15%): Deadline: 11/27/2018. One Submission per team must be uploaded prior to the start of class. d) Peer Reviews (10%): Deadline: 11/29/2018 Gantt Charts, Team Charter, pseudo code and Team Assessments 1 and 2 are required components and will be included in the assignment portion of the course grade. E E EEEEEEE E Ε ΕΙΕΙΕ ΕΙΕ ΕΙΕ ΕΕ EEEEEEEEEE EEEEEEEEEE CCCCCCCCCC CCCCCCCCCC с | cc cc |с |с | с с с с с с с с с с C с с с F F F FF F F F F F F F F F FF FF F F F FF FF FF FF F F FF FF FF FF F Customers have the following event options (cost is per person): Event Cost ($) Helicopter Tour 50 Musical 25 Horseback riding 100 Skydiving 150 Students will be required to create matrices for each event. HT represents the Helicopter Tour, M represents the Musical, H represents Horseback Riding and S represents Skydiving. Your program must allow members of your party to choose different events. Members are not allowed to attend multiple events, they can either choose 1 event or none. There should be 5 separate sets of matrices that represent each possible destination. нт |нт |нт | нт нт | нт нт | нт III S s ss s s Ss мм мм мм мм мм мм мм мм мм мм мм мм мм мм мм M M M ммм M M M M мм M M H H H
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Here is the m-file https://files.fm/u/mjgsj3utThe first section has som...


Anonymous
Excellent resource! Really helped me get the gist of things.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags