Chat with us, powered by LiveChat CTI120 C++ Functions Assignment | Abc Paper
+1(978)310-4246 credencewriters@gmail.com
  

you have to write a code for both questions attached in C++. You have to complete the following programs by writing all functions. DON’T MAKE ANY CHANGES IN THE MAINplease make sure there are no errors or wrong outputs!! they all should be done as what the worksheet wants you to do it, After finishing it, please attach each code in a separate txt file and a screenshot of the output
p11_functions.pdf

Unformatted Attachment Preview

Computer Science 120
Project No. 11 (user defined functions)
Complete the following programs by writing all functions. DON’T MAKE ANY CHANGES IN THE MAIN
1. int main()
{
Enter 3 integer numbers: 10 20 30
//declare identifiers
int x, y, z, max, min;
Sum = 60
//read three integer numbers into x,y,z
Average = 20.00
ReadData(x,y,z);
//find and display the sum and average of x,y,z
Maximum = 30
int Sum; float Average;
Minimum = 10
FindSumAve(x,y,z, Sum, Average);
ShowSumAve(Sum,Average);
//find and display the max. and min. of x,y,z
FindMaxMin(max, min, x,y,z);
ShowMaxMin(max, min);
//terminate
program
system(“pause”); return o;
———-Practice Arithmetic——— 1.
}
Addition
2. int main()
2. Subtraction
{ // display menu
DisplayMenu();
Enter your choice (1/2): 1
//select your choice
10 + 20 =? 30
int choice;
CORRECT
Select( choice); //
Continue(y/n)? y
test your choice
11 + 14 =? 35
switch( choice )
WRONG
{ case 1: PracticeAdd(); break;
case 2:
Continue(y/n)? n
PracticeSub(); break;
No.
of
CORRECT answers = 1
}
No. of WRONG answers = 1
//terminate
program
system(“pause”); return 0; }

Our essay writing service fulfills every request with the highest level of urgency.
attachment

error: Content is protected !!