[3] Make the program that finds the greatest number in the first half and the second half in the array. The full descrip
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
[3] Make the program that finds the greatest number in the first half and the second half in the array. The full descrip
[3] Make the program that finds the greatest number in the first half and the second half in the array. The full description of the question No.3. Let's assume that we have an array “number” which has the size N=10. Make the program that finds the greatest number between number[0] and number[N/2 - 1] and also between number[N/2] to number[N-1]. - [Program Requirements] • Define the function “int findMax(int from, int to);" to get the greatest number in a certain range. o Int findmax(int number[], int from, int to); • Return value: the greatest number within the index from and to. • int from : the starting index of the range int to: the last index of the range [Credits] • Program Correctness : 3 pts • Elaboration on algorithms and program design : 2pts [Submit your file and elaboration] o Program Source File: Upload to the Github Classroom · Github Classroom: • Elaborate your algorithm, program logic, and the runtime and compile errors you experienced.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!