FIT1048 Fundamentals of C++ Assignment, MUM, Malaysia You are asked to write a set of C++ classes that simulate the operation of an airline
| University | Monash University Malaysia (MUM) |
| Subject | FIT1048: Fundamentals of C++ |
In this assignment, you are asked to write a set of C++ classes that simulate the operation of an airline. An airline operates over several different routes and uses several different aircraft types on each route. In this assignment, we will restrict the number of routes per airline to 10, and the number of aircraft per route to 10. You are required to create three C++ classes, Airline, Route, and Aircraft. The main program called Assign1, which is the driver program, has been supplied with this assignment.
Each of these three classes will have a constructor method that has a signature identical to that used for that class in the Assign1 driver program. Each will also have a toString() (Display the details about that particular class) method that will return a String that can be used to display information about the object.
Class data members should be private with appropriate setter and getter methods for those that need to be accessed.
Aircraft
An aircraft class has the following data members.
Data members
String type a design of the aircraft type eg. Boeing 747, Airbus A380 int passengers the number of passengers that aircraft can carry int crew the number of crew members needed double maintCost the cost of maintenance per hour of flying double fuelEffic the tonnes of fuel used per hour of flight Methods.
1. A constructor method that accepts values for, and initializes all the data
members of an Aircraft object. eg. Aircraft A330.
2. toString() method that returns the Aircraft type and passenger capacity.
3. calcRunningCosts() a method that calculates the total cost of one hour of
flight. This is made up of the cost of fuel used, the cost of the aircrew, and the maintenance costs as well as an overhead cost.
To calculate these we assume all aircrew are paid $100 per hour in flight and the cost of jet fuel is $767 per tonne. To this, we add the hourly maintenance costs and an overhead figure of $8000 to cover the costs associated with buying a plane and the costs of administration and infrastructure required on the ground.
Get Help By Expert
AssignmentHelper.my is an expert assignment writing service that offers comprehensive and reliable assistance for FIT1048 Fundamentals Of C++ Assignment in MUM, Malaysia. We provide custom assignment help in Malaysia to students from all universities so they can get the best grades in their courses. Our professional writers are experts in different C++ topics, and are well-versed in the concepts and principles of programming. We also help students with thier "take my online exam for me" request. We understand the importance of submitting a well-written and error-free assignment. We provide students with the assistance they need to complete their assignments correctly. You can also go through our free computer assignment answers, which we provide to help students get a better understanding of their assignments.
Recent Solved Questions
- PGBM156: Strategic Management in an International Context Assignment, UOS, Malaysia: Required to briefly explain what this assessment is all about and what you will be addressing in this assessment
- OUMH1603: How can we balance the urgent need for global action on climate change with the unique challenges: Learning Skills For 21st Century, Assignment, OUM, Malaysia
- Microbiology Essay, UM, Malaysia- An infectious disease occurs when there is a harmful alteration to the physiological or metabolic state of the host caused by a microorganism
- PSYC2505: Foundations of Psychology and Sociology For Health Assignment, UON, Malaysia As a student, you are expected to have good communication and interpersonal skills
- BMG306/03 Introduction to International Business Case Study WOU Malaysia In April 1992, EuroDisney first opened in Paris, France It later changed its name to Disneyland Paris
- MX3536: Differential Equations Assignment, UTM, Malaysia Concider the heat equation with boundary conditions and initial conditions
- FBF1163: Fundamentals of Programming Assignment, UCSI, Malaysia Presume that your class at UCSI finishes at 6:30 pm and you must travel 6 km to reach your home for dinner
- English Essay, APU, Malaysia The occurrence of violence and abuse against children is on the rise. Discuss the causes and effects
- PGBM150: Innovation Entrepreneurship & Technology Transfer Report, SU, Malaysia The assessment has been specifically designed to accommodate the students varying commercial knowledge and understanding of module content
- LAW60104: Business Law Case Study, TU, Malaysia On 14th February 2023, Peter advertised his BMW car which was actually worth RM80,000 for sale for RM66,000