main.c Custom Input Output Tests Executions 1. 2nd Smallest 1 by Jemar Jude Maranga CE Run Tests Make an array that would print the 2nd smallest digit. The maximum size of the array is 50 and all elements are unique. Test Cases Input O Test Case 1 A single line containing the array size. Maximum array size is 50. Next input the value of the elements. When inputting value of elements, it must be in ascending Input order. Your No Output Output Expected 2 Output Output A single line containing the 2nd smallest digit. 2 O Test Case 2 O Test Case 3 Hidden O Test Case 4 Hidden Tert Care E

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question

2nd Smallest

Code in C language

main.c
+
Custom Input
Output
Tests
Executions
1. 2nd Smallest
1
by Jemar Jude Maranga
CE Run Tests
Make an array that would print the 2nd smallest digit. The maximum size of the
array is 50 and all elements are unique.
Test Cases
Input
O Test Case 1
A single line containing the array size. Maximum array size is 50. Next input the
Input
value of the elements. When inputting value of elements, it must be in ascending
5
order,
2
3
5
1
5
3
4
Your
No Output
5
Output
Expected
2
Output
Output
A single line containing the 2nd smallest digit.
2
O Test Case 2
O Test Case 3
Hidden
O Test Case 4 Hidden
O Test Case 5 Hidden
Transcribed Image Text:main.c + Custom Input Output Tests Executions 1. 2nd Smallest 1 by Jemar Jude Maranga CE Run Tests Make an array that would print the 2nd smallest digit. The maximum size of the array is 50 and all elements are unique. Test Cases Input O Test Case 1 A single line containing the array size. Maximum array size is 50. Next input the Input value of the elements. When inputting value of elements, it must be in ascending 5 order, 2 3 5 1 5 3 4 Your No Output 5 Output Expected 2 Output Output A single line containing the 2nd smallest digit. 2 O Test Case 2 O Test Case 3 Hidden O Test Case 4 Hidden O Test Case 5 Hidden
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT