Write a program that creates two airplane objects

Assignment Help Computer Engineering
Reference no: EM132194425

Write a C++ class for an airplane.

The Airplane class should have three data members type of airplane (character array of SIZE 50). current flying speed, and maximum flying speed (both of type double).

The class should have the following methods:

Write a C++ program that creates two airplane objects, plane1 and plane2 and then invokes methods to fly the planes at a particular speed.

Use c out statements to announce the speed of the airplane.

Assign a maximum speed to your Airplane objects to prevent an airplane from flying faster than its maximum speed.

You should have the header file (i.e. class definition) as airplane. h, the implementation file (that is the class methods definition) as airplane.cpp, and the driver airplanedrvr.cpp AS examples use 747 and 777 as types.

For plane 1 set maximum speed to 1000, and for plane2 to 1500. For plane 1 set current speed to 700. and for plane2 to 1200.

What happens if for example you set for plane1 the current speed to 1200. and for plane2 to 1700.

When you write the method you should take this into consideration.

Reference no: EM132194425

Questions Cloud

What makes for effective implementation of change in general : Explain what makes for effective implementation of change in general. Examine an effective introduction of the adopted change in an appropriate organization.
Write easiest program you can think off i am beginner : Write easiest program you can think off i am beginner. Use TASM syntax only as i am not familiar with syntax of other compilers.
Explain importance of politics in development of standards : This module explored the importance of politics in the development of standards that govern human services practices. While many individuals might believe.
How did you give direction and provide support for change : How did others respond to your leadership? How did you deal with resistance? How did you give direction and provide support for this change?
Write a program that creates two airplane objects : Write a C++ program that creates two airplane objects, plane1 and plane2 and then invokes methods to fly the planes at a particular speed.
Benefits of using a recruiting agency : What are the benefits of using a recruiting agency when looking for a job.
Develop the vision for the organization : Managers look inside the organization, and figure out the resources that make that Vision a reality. What do you think?
Closed system in an organization : What is the difference between an open system and a closed system in an organization?
Online advertising market apply to the radio market : 1. Why didn't the lessons Google learned in the online advertising market apply to the radio market?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Overwrite the input and the number of local variables

overwrite the input and the number of local variables should not depend on n - Prepare pseudocode converting M to be stored in column major order.

  Why is not function declaration for the function get name

Why isn't the function declaration for the function get Name given in the definition of Salaried Employee?

  Calculate the average surface temperature of the head

An average person generates heat at a rate of 240 Btu/h while resting in a room at 70°F. Assuming one quarter of this heat is lost from the head.

  Generating the crow’s foot erd

Provided the following business scenario, generate a Crow’s Foot ERD utilizing a specialization hierarchy if suitable. Tiny Hospital keeps the information on patients and the hospital rooms.

  Computer security is not an issue for organizations alone

computer security is not an issue for organizations alone. anyone whose personal computer is connected to a network or

  Find which one of the fourteen binary search trees

Find which one of the 14 binary search trees corresponds to each of the 24 possible ordered sequences of 1, 2, 3, 4.

  Can data administrator really be on the same level as dba

Should the data administrator really be on the similar level as the DBA (database administrator), usually somewhat low in the corporate hierarchy or should this person have an elevated level of importance.

  In what ways can an html form element acquire focus

In what ways can an HTML form element acquire focus? Describe the approach to addressing HTML elements using forms and elements.

  Write a program that allows to examine effects of array size

Write a program that allows you to examine the effects of array size and initial data order when your favorite sort operates on an array of integers.

  Create a visual logic file on one task with statements

Create a Visual Logic file on one task with statements that perform the selected calculation and one Excel Macro that accomplishes the same task with VBA statements.

  Choose a social network site and research its security

select a social network site and research its security features. are they sufficient? should they be stronger? what

  Devise an alternative way to fix the bug in the algorithm

Suppose that it has been decided not to maintain global time (too expensive). Devise an alternative way to fix the bug in the algorithm.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd