Question: answer all in C++ 1. Write a program to print the sum of two integer numbers entered by user by defining your own function. 2.
1. Write a program to print the sum of two integer numbers entered by user by defining your own function. 2. Write a program to: - Ask a name of student (at least 2 ) and test score from user. - Write name and score to the test.txt file. - Read name of student and score from test.txt. - Compute the average of the scores and display the result. 3. Write a program to print if the number entered by user is prime number or not by defining your own function (return type should be Boolean). 4. Write a program that ask for two numbers, compare them and show the maximum. Declare a function called max_two that compares the numbers and returns the maximum. 5. Write a program that ask for two numbers, compare them and show the factorial of the maximum. Declare two function called fact_num that returns the factorial of a number and max_two that compares the numbers and returns the factorial of maximum. Call the function fact_num inside the max_two
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
