<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2737215568399142421</id><updated>2011-04-21T17:25:23.992-07:00</updated><title type='text'>Dragonfly</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dragonfly-chinting.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2737215568399142421/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dragonfly-chinting.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dragonfly Team</name><uri>http://www.blogger.com/profile/16947982788335878902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2737215568399142421.post-8641707867450726858</id><published>2008-12-04T06:08:00.000-08:00</published><updated>2008-12-04T07:06:10.436-08:00</updated><title type='text'>Objects, Data and Methods</title><content type='html'>&lt;span style="font-family:arial;"&gt;object = flight&lt;br /&gt;data member = name of the pilot,name of the flight,number of flight attendents,details of the flight (time of boarding and arriving)&lt;br /&gt;method = add,update,display&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;object = passenger&lt;br /&gt;data member = name,nric no.,age,gender&lt;br /&gt;method = update,display &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;namespace Project_D_Airline&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;class Passenger&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;//Declare Object and Data Type&lt;/span&gt;&lt;br /&gt;public string name; &lt;span style="color:#33cc00;"&gt;//Name of Passenger&lt;/span&gt;&lt;br /&gt;public string NRIC; &lt;span style="color:#33cc00;"&gt;//NRIC of Passenger&lt;/span&gt;&lt;br /&gt;public int age; &lt;span style="color:#33cc00;"&gt;//Age of Passenger&lt;/span&gt;&lt;br /&gt;public char gender; &lt;span style="color:#33cc00;"&gt;//Gender of Passenger&lt;/span&gt;&lt;br /&gt;public string nationality; &lt;span style="color:#33cc00;"&gt;//Nationality of Passenger&lt;/span&gt;&lt;br /&gt;public string foreignadd; &lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#33cc00;"&gt;//Address in Foreign Country&lt;br /&gt;&lt;/span&gt;public string localadd; &lt;span style="color:#33cc00;"&gt;//Address in Local Country&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;//Declare UpdatePassenger and DisplayPassenger Methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public void UpdateP()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void DisplayP()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;//Methods for 2D array&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public void Initialise()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;class FlightInfo&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;//Pilot name, Flight name, departure time, arrival time&lt;/span&gt;&lt;br /&gt;public string Pname,Fname,departureT, arrivalT;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;//Number of attendants&lt;/span&gt;&lt;br /&gt;public int noattendants;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;//Declare UpdateFlight and DisplayFlight Methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public void UpdateF()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void DisplayF()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;class Program&lt;br /&gt;{&lt;br /&gt;static void Main()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2737215568399142421-8641707867450726858?l=dragonfly-chinting.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dragonfly-chinting.blogspot.com/feeds/8641707867450726858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2737215568399142421&amp;postID=8641707867450726858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2737215568399142421/posts/default/8641707867450726858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2737215568399142421/posts/default/8641707867450726858'/><link rel='alternate' type='text/html' href='http://dragonfly-chinting.blogspot.com/2008/12/objects-data-and-methods.html' title='Objects, Data and Methods'/><author><name>Dragonfly Team</name><uri>http://www.blogger.com/profile/16947982788335878902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2737215568399142421.post-2241185967943883602</id><published>2008-11-29T06:41:00.000-08:00</published><updated>2008-11-29T07:04:15.370-08:00</updated><title type='text'>Introduction</title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;span style="color:#3333ff;"&gt;&lt;u&gt;&lt;strong&gt;The Dragonfly C# Team!&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Our Project Title: Project D - Airline Reservation System&lt;br /&gt;&lt;br /&gt;Team Members: &lt;span style="color:#000000;"&gt;Peng Chin&lt;/span&gt; (Left) and &lt;span style="color:#000000;"&gt;Liting &lt;/span&gt;(Right)&lt;br /&gt;&lt;/span&gt;&lt;a href="http://2.bp.blogspot.com/_4RE96uTaYH0/STFWsf2lIOI/AAAAAAAAAAM/f_tZ0oLZKoA/s1600-h/DSC09899.JPG"&gt;&lt;span style="font-family:arial;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5274091961092219106" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 240px" alt="" src="http://2.bp.blogspot.com/_4RE96uTaYH0/STFWsf2lIOI/AAAAAAAAAAM/f_tZ0oLZKoA/s320/DSC09899.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;color:#ff0000;"&gt;Airline Reservation System&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Objective: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Write a computer program to help a airline to manage the booking of seats for a&lt;br /&gt;flight (eg. SQ121) using Objects and Classes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;Part 1 – Develop the system for 1 Flight&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;An airline needs to manage the seat booking for a flight. &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;The seats consist of 10 rows and each row contains 6 seats. &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;For each of the seat, the airline needs to keep track of the passenger (pax) assigned to the seat. The airline would also like to store the name of the pilot of the flight, and the name of the flight, and the number of flight attendants. &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;They need functions that can do the following:&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1. add a passenger to the flight,&lt;br /&gt;2. display all the passengers of the flight, in NRIC No. order.&lt;br /&gt;3. store the pilot’s name, the flight name, and the number of flight attendants.&lt;br /&gt;4. find the details of passengers stored at a specified row and seat, and&lt;br /&gt;5. find the total number of passengers stored in each row, plus&lt;br /&gt;6. any other functions that you think would be useful.&lt;br /&gt;Your program must store data for different passengers. For each passenger you will need to&lt;br /&gt;store the following data. For part 1, you can fix the number of passengers.&lt;br /&gt;1. Name , and&lt;br /&gt;2. NRIC No., age, gender&lt;br /&gt;3. any other data that you think would be useful.&lt;br /&gt;The airline would like an Update and a Display function for each passenger. Update the data&lt;br /&gt;stored for each seat so that it contains both the information about the passenger stored and a&lt;br /&gt;reference to the passenger data. Note that a passenger can book more than 1 seat on the same&lt;br /&gt;flight.&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;em&gt;&lt;strong&gt;Part 2 – Store data for 3 flights &amp;amp; variable number of passengers&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;The second part of the project is to modify your program so that you can store data for three&lt;br /&gt;flights. Allow the user to find out the total number of passengers stored in the three flights.&lt;br /&gt;Use a Queue to handle the customers booking the seats. Enable the system to handle variable&lt;br /&gt;number of customers to book for seats but it can at most seat 60 (10x6) passengers per&lt;br /&gt;airplane.&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;*** THE END ***&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2737215568399142421-2241185967943883602?l=dragonfly-chinting.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dragonfly-chinting.blogspot.com/feeds/2241185967943883602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2737215568399142421&amp;postID=2241185967943883602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2737215568399142421/posts/default/2241185967943883602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2737215568399142421/posts/default/2241185967943883602'/><link rel='alternate' type='text/html' href='http://dragonfly-chinting.blogspot.com/2008/11/introduction.html' title='Introduction'/><author><name>Dragonfly Team</name><uri>http://www.blogger.com/profile/16947982788335878902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4RE96uTaYH0/STFWsf2lIOI/AAAAAAAAAAM/f_tZ0oLZKoA/s72-c/DSC09899.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
