Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c + + how can i finish this code to find the largest value in the array * Pseudocode: * Level 0 * -
in c how can i finish this code to find the largest value in the array
Pseudocode:
Level
Get numbers from the user
Find the largest value
Display the largest value
Level
Get numbers from the user
For counter To SIZE By
Output "Enter number counter
Input numscounter
End
Find the largest value
Display the largest value
Output EOL, EOL
Output "The largest values entered was largest, EOL
int main
Local constants
const int SIZE ; Size of the array for user's numbers
Local variables
int numsSIZE; Array containing user's numbers
int counter; Loop control variable
int largest; Largest value of the user's data set
Begin main Function Executables
Get numbers from the user
for counter ; counter SIZE ; counter
cout "Enter number counter ;
cin numscounter;
Find the largest value
Display the largest value
cout
;
cout "The largest values entered was largest endl;
Indicate to OS successful termination of program
return ;
End main
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