Calculate both the total value of revenue

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

Write a C++ program that will calculate the total and average revenue of a company and test the following three functions:getData, calculateanddisplayutilizes several functions that. Function 1 Write the void FUNCTION getData that asks the user to enter the revenue values of firstQ, secondQ, thirdQ, and forthQ.

All variables are of type double. Then the function will pass these values back to main program as parameters. Make sure to identify, if any, call by reference variables.

Function 2 Write the FUNCTION calculatethat receives the four revenue values firstQ, secondQ, thirdQ, forthQ through the parameter list, calculates both the total value of revenue (by summing the four revenue values) and calculates the average revenue (by dividing the total revenue by 4.0).

The function will then pass (send) the total back to main through the parameter list and returns the average to main.

Make sure to identify, if any, call by reference variables. Function 3 Write the void FUNCTIONdisplaythat receives the four revenue values, the total and average through the parameter list from main and displays the information to screen.

Make sure to identify, if any, call by reference variables.

Reference no: EM131137880

Questions Cloud

Explain the logic of a potential short run trade off : How would you explain the logic of a potential short run trade-off between unemployment and inflation to the President?
What is the market clearing fed funds rate now : Suppose the alternative, that the open market desk does nothing different, that is, they hold the amount of reserves constant. What happens in the reserve market? What is the market clearing fed funds rate now?
Compute the values for the array : Write a program that: Sizes an array to hold 5000 values of type int. Using the rand( ) function, create random numbers from 1-1000 and place into the array.
Graph consumption schedule and determine the mpc : Graph this consumption schedule and determine the MPC.- Graph the resulting consumption schedule and compare the MPC and the multiplier with those of the pretax consumption schedule.
Calculate both the total value of revenue : Write the FUNCTION calculate that receives the four revenue values firstQ, secondQ, thirdQ, forthQ through the parameter list, calculates both the total value of revenue
What type of field compaction equipment would you recommend : How would you check that the desired compaction is achieved in the field?
Write out the search value and the location : Write out the search value and the location in which it was found if it was found, and a ‘not found' message if not.
Explain the instructors reasons for the term paper format : Explain the instructor's reasons for term paper format. Fully explain the Consumer Price Index: how it is derived and what it is used for. Draw and explain a Phillips curve, which attempts to explain the relationship between inflation and unemploymen..
The hypothesis that a random variable : (a) the hypothesis that a random variable has a gamma distribution with α = 3 and β = 2;

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Example of a program that contains an algorithm

Provide an example of a program that contains an algorithm whose Big-Θ is exponential. Clearly explain what n represents in your program. Make some assumption about how long it would take to execute one of the operations that you are counting.

  What output would be produced by the program segment

What output would be produced by the following program segment?

  Calculate and prints the average of the ratings

Write a C program that accepts by keyboard input (8) user-ratings of the Galaxy S5. The ratings use a scale of 1 to 10, where 10 represents a high rating and 1 represent a low rating: Calculate and prints the average of the ratings

  Program that presents a menu of choices for the user

Write a C program that initially presents a menu of choices for the user.

  Unit conversions

Unit Conversions. The following problem generate tables of unit conversions. Include a table heading and column headings for the tables. Choose the number of decimal place based on the values to be printed.

  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.

  Write a simple guessing game

In this lab, you will write a simple guessing game. The computer will generate a random integer within a valid specified range, inclusive (min, max) read in from a text file

  Find maximum velocity and maximum acceleration

Find maximum velocity and maximum acceleration - Write a general function that can be used to find the maximum of any array. Call this function twice in order to find maximum velocity and maximum acceleration.

  Determining the purchase of new aircraft

Southern Air is considering purchase of new aircraft and has set aside $1.5B dollars for this. They have enough pilots to crew 30 new planes and enough maintence personnel to crew 40 new short range planes.

  Compute the volume of write-back traffic in bytes

Compute the volume of write-back traffic in bytes. Provide a plot of the miss rate vs. the line size for line sizes of 32 bytes to 2 Kbytes. Note that line sizes are a power of 2.

  Program two decimal places

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both  the mass and the weight rounded to two decimal places. (Note that for  standard Earth gravity, 1 kilogram =..

  Binary tree, print right view of it

Given a Binary Tree, print Right view of it. Right view of a Binary Tree is set of nodes visible when tree is visited from Right side.

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