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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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