Void Function without Parameters

March 29, 2013 at 07:11:54
Specs: Windows 7
Write the function void readTestScores (double &exam, double &tavge) that does the following:
- print the prompt: "enter exam score:" than read the exam score
- print the prmpt: "enter all test scores:" then read 7 test scores in a loop, and than computer their average
- the exam score and the average of the test scores are returned to the calling function using the reference parameters exam and tavge respectively

See More: Void Function without Parameters

Report •

March 29, 2013 at 07:57:37
A few minutes with Google will help you answer this homework question.

The question is very simple really and is testing your knowledge of passing parameters by reference and passing by value. I am sure that somewhere along the way your tutor must have mentioned this.

If anyone were to write the code for you you still wouldn't be any the wiser in what is a fundamental principle in any programming language.


Report •
Related Solutions

Ask Question