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

  The following report must be used for reference to complete

the following report must be used for reference to complete this assignment. the nielsen norman group published a

  Ssl protection

Explain whether pages are served over the SSL protected from problem you explained. If so, explain why; if not, explain why not.

  Integrate the research and analysis from the previous

one of the most common business tools during organizational assessment is the strengths weaknesses opportunities and

  Why is that important for you to understand

SQL is often presented a a single database language, but some contend that it is a set of languages.

  Create a systems diagram in microsoft visio

Create a Systems Diagram in Microsoft Visio, or another diagramming tool, that shows both the current (from Week One instructions) and proposed IT landscape.

  Verilogprogram for a sticky-counter state machine

Write an ABEL, VHDL, or Verilogprogram for a sticky-counter state machine with eight states, S0 -S7,that are coded into three bits in binary counting order. Besides CLOCK, the machine should have two inputs, RESET and ENABLE, and one output, DONE...

  Would google glass enable you to do something that you

describe some of the ways in which google glass might be useful in your daily personal and work life.would google

  Describe the actions an organization needs to execute

Describe the actions an organization needs to execute in order to improve their quality assurance and auditing processes within the organization.

  Define what is the downside of digital medical records

What is the downside of digital medical records. Should all collected data be in a digital form. What type of data should not be in digital form

  Describe the disadvantages associated with this design

A popular word processor previously contained an anthropomorphic character to assist users as they worked in the program.

  Create a recursive java program that will traverse the array

Create a recursive Java program that will traverse the array looking for a path from the upper left corner to the lower right.

  What is meant by field width control in relation

What is meant by field width control in relation to printf()'s display? How is it specified?

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