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

  Develop a simple poker game

Develop a simple poker game

  Compute the sum of the integers

Write a short code fragment that would compute the sum of the integers from 1 to 100 and leave this sum in $6. No input or output is necessary.

  Use selection sort to sort a[48] into increasing order

Use selection sort to sort A[48] into increasing order, and then print out the sorted list in four rows. There may be duplicates, but that's OK. (65 and 53 appear twice.) Duplicates will appear next to each other in the sorted list.

  C program to calculate power loss in transmission line

Write program in C to calculate the power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generation station

  Develop a crytographic scheme that will encode a message

Develop a crytographic scheme that will encode a message. In order to do that, you will convert a single character into its ascii code, add a certain integer value to it, and convert back into a character.

  Write a program to find the area of a circle

Write a program to find the area of a circle. The program should use two procedures. The first procedure will print out the program heading and ask the user to enter the radius.

  Display the commands

Display the commands(s) used to do the following (and show the results): see the df command to view file system use in megabytes.

  Implement circular linked list in c program

implement circular linked list in c program in the best possible easiest way.

  Write specifications for a method

Write specifications for a method that advances any given date by one day. Include a statement of purpose, pre- and post-conditions, and a description of the parameters.

  Compute and display net weekly pay

You need to prepare a C++ program in which you declare variables that holds an hourly wage, a number of hours worked, and a withholding percentage.

  Write a c++ program to first find ''n'' fibonacci numbers

Write a C++ program to first find 'N' Fibonacci numbers and then display only the "even" Fibonacci numbers in "descending order" as output.

  Design a solution that prints the amount

Design a solution that prints the amount of pay a commissioned salesperson takes home. The more sales documented, the larger the commission rate. Allow the user to input a total sales amount for the week. Compute the commission based on the follow..

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