CTI120 C++ Functions Assignment

User Generated

nyv505

Computer Science

CTI120

Description

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 MAIN

please 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

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; }
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Attached is the full answer. Pleas...


Anonymous
Really helpful material, saved me a great deal of time.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags