Week-06 Program-01
Due on 2022-03-10, 23:59 IST
Write a C Program to find Largest Element of an Integer Array.
Here the number of elements in the array ‘n’ and the elements of the array is read from the test data.
Use the printf statement given below to print the largest element.
printf("Largest element = %d", largest);
Here the number of elements in the array ‘n’ and the elements of the array is read from the test data.
Use the printf statement given below to print the largest element.
printf("Largest element = %d", largest);
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
10
50
40
30
20
| Largest element = 50 | Largest element = 50 | Passed |
Test Case 2 | 7
100
50
60
70
90
30
40
| Largest element = 100 | Largest element = 100 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week-06 Program-02
Due on 2022-03-09, 23:59 IST
Write a C Program to print the array elements in reverse order (Not reverse sorted order). Just the last element will become first element, second last element will become second element and so on)
Here the size of the array, ‘n’ and the array elements is accepted from the test case data.
The last part i.e. printing the array is also written. You have to complete the program so that it prints in the reverse order.
Here the size of the array, ‘n’ and the array elements is accepted from the test case data.
The last part i.e. printing the array is also written. You have to complete the program so that it prints in the reverse order.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
1
2
3
4
5
| 5\n
4\n
3\n
2\n
1\n
| 5\n
4\n
3\n
2\n
1\n
| Passed |
Test Case 2 | 4
45
65
35
25
| 25\n
35\n
65\n
45\n
| 25\n
35\n
65\n
45\n
| Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week-06 Program-03
Due on 2022-03-10, 23:59 IST
Write a C program to read Two One Dimensional Arrays of same data type (integer type) and merge them into another One Dimensional Array of same type.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 3
10
20
30
4
40
50
60
70
| 10\n
20\n
30\n
40\n
50\n
60\n
70\n
| 10\n
20\n
30\n
40\n
50\n
60\n
70\n
| Passed |
Test Case 2 | 4
9
7
6
5
2
30
50
| 9\n
7\n
6\n
5\n
30\n
50\n
| 9\n
7\n
6\n
5\n
30\n
50\n
| Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week-06 Program-04
Due on 2022-03-10, 23:59 IST
C Program to delete an element from a specified location of an Array starting from array[0] as the 1st position, array[1] as second position and so on.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
10
20
30
40
50
4
| 10\n
20\n
30\n
50\n
| 10\n
20\n
30\n
50\n
| Passed |
Test Case 2 | 6
600
500
400
300
300
200
4
| 600\n
500\n
400\n
300\n
200\n
| 600\n
500\n
400\n
300\n
200\n
| Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
No comments