Question: Write a program to find the second largest integer number using an array of numbers a . Use functions you must have a least these

Write a program to find the second largest integer number using an array of numbers
a. Use functions you must have a least these functions
i. main()
ii. void read_array(parameters,...) to allow user to read the elements into the array
iii. void display_array(parameters,...) to print the elements of the array
iv. you can create other functions as needed
b. NO GLOBAL Variables.
c. Sample test Run 1(red user input) Provide your data for test run 2 and 3.
Enter the number of elements in the array: 6
Enter the number: 10
Enter the number: 35
Enter the number: 60
Enter the number: 34
Enter the number: 20
Enter the number: 46
The numbers you entered are: 103560342046
The largest of these numbers is: 60
The second largest of these numbers is: 46
i. main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!