Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE READ We are working on making simplie C++ programs using Putty. I need help understanding how to do the problem below so that I
PLEASE READ We are working on making simplie C++ programs using Putty. I need help understanding how to do the problem below so that I can do others like it on my own. PLEASE PAY ATTENTION TO THE TEST CASE PROVIDED the end result MUST look exactly 7ESTCASEPROVIDED-the e like the test case shown, same spacing, same alignment, same numbers, etc. I cannot use "break;" to get out of loops Here is the problem given: (largestFunc.cpp) Make a program will read 3 numbers from the user and tell the largest number. Make the following 4 functions in addition to the main showProgInfo This function will show the program information shown below. This program will ask you to enter 3 numbers and find the largest. getNum This function asks the user to enter one number and returns it. Call this function 3 times in the main to get 3 numbers from the user. findLargest This function finds the largest value among the 3 numbers and returns it. Use the following format. int largest; largest m, largest m, else largest-???? return ?????; printResult This function shows the result in the following format. Assume the user entered 3, 5 and 1 in this order. The largest number among 3, 5 and 1 is 5. Test your program using the following 4 cases. TEST CASES: Test 1 3, 5,1 Test2 6,4,2 Test 3 3, 5,7 Test 4 8, 8, 8
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started