Determine the total weight and center of gravity of aircraft

Assignment Help C/C++ Programming
Reference no: EM131492154

C++ Assignment: CENTER OF GRAVITY

When piloting an aircraft, it is necessary to know the weight and center of gravity of the aircraft before takeoff. If the aircraft is overloaded, it may be difficult or impossible to achieve lift. If the center of gravity is outside of the designated limits, the aircraft may be difficult to control.

Determine the total weight and center of gravity of an aircraft, based on the number of crew members (a maximum of two is allowed) and the weight of the cargo (a maximum of 5,000 pounds is allowed).

To compute the center of gravity, the program will take each weight and multiply it by its distance from the nose of the airplane. These products, called moments, are added together, and the sum is divided by the total weight to give us the center of gravity. The empty weight of the aircraft is known to be 9,021 pounds, and its empty center of gravity is 305 inches from the nose of the aircraft. Thus, the empty moment is 2,751,405 inch-pounds. The aircraft can hold a maximum of 540 gallons of fuel. For simplicity, we will assume that the tank is full at the time of takeoff and, with a fuel weight of 6.7 pounds per gallon, the fuel moment is known to be 1169156.7 inch-pounds. (Assume fuel tanks are 323.15 inches from the nose of the aircraft. Crew distance from the nose is 120.0 inches and cargo nose distance is 345.0.)

IMPLEMENTATION

Determine the total weight and center of gravity of an aircraft based on above criteria.

Use at least three programmer defined functions. One function must be void with reference parameters. Your program should continue calculations as long as user wishes. Make sure to validate weight of cargo and crew. Each crew member weight must be between 150 and 210. ONLY GLOBAL CONSTANTS ARE ALLOWED. NO GLOBAL VARIABLES.

OUTPUT:

Enter number of crew members (maximum of 2) 1

Enter weight of each lst crew member 160

Enter weight of cargo (maximum of 5000 lbs) 100

100 pounds of cargo loaded. Thank you.

The total weight is 12899 pounds.

The center of gravity is 308.106 inches from the nose of the plane

Another calculation of center of gravity? Press 'y': y

Enter number of crew members (maximum of 2) 2

Enter weight of each lst crew member 160

Enter weight of each 2nd crew member 160

Enter weight of cargo (maximum of 5000 lbs) 100

100 pounds of cargo loaded. Thank you.

The total weight is 13059 pounds.

The center of gravity is 305.801 inches from the nose of the plane

Another calculation of center of gravity? Press 'y': y

Enter number of crew members (maximum of 2) 2

Enter weight of each lst crew member 150

Enter weight of each 2nd crew member 250

Re-enter weight, weight must be between 150 and 210 210

Enter weight of cargo (maximum of 5000 lbs) 4000

4000 pounds of cargo loaded. Thank you.

The total weight is 16999 pounds.

The center of gravity is 314.357 inches from the nose of the plane

Another calculation of center of gravity? Press 'y': n

Reference no: EM131492154

Questions Cloud

What is the dollar amount of income : what is the dollar amount of income that she needed to have to reach her objective?
When constant growth begins and current intrinsic value : determine Goodwin's horizon value at the horizon date-when constant growth begins-and the current intrinsic value.
What command shuts down all network interfaces : What command can be used to verify that a network interface is down?
What is dollar amount of dividends : What is the dollar amount of dividends that he received for owning the stock during the year?
Determine the total weight and center of gravity of aircraft : Determine the total weight and center of gravity of an aircraft based on above criteria. Use at least three programmer defined functions.
Economic order quantity model : The company is using Economic Order Quantity model in placing the orders. What is the average inventory held during the year?
What is the command to install the openssh-server in linux : The Linux network programs use a set of scripts found in what directory?
How a hotel general manager analyse the problems : How a hotel general manager analyse the problems and solutions caused by Technology change" use the attached photo as the example
What type of variables are listed in the dataset : What type of variables are listed in dataset and which ones are quantitative variables and which ones are qualitative variables if any? Plot time series charts.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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