Week 7 : Programming Assignment 1
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | Online NPTEL Course. | Uppercase Letters : 7\n
Lowercase Letters : 10 | Uppercase Letters : 7\n
Lowercase Letters : 10 | Passed |
Test Case 2 | National Programme on Technology Enhanced Learning is a joint initiative of the IITs and IISc. | Uppercase Letters : 11\n
Lowercase Letters : 68 | Uppercase Letters : 11\n
Lowercase Letters : 68 | Passed |
Week 7 : Programming Assignment 2
Write a C program to find the sum of all elements of each row of a matrix.
Example: For a matrix 4 5 6
6 7 3
1 2 3
The output will be
15
16
6
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 3
3
1
1
1
2
2
2
3
3
3 | 3\n
6\n
9 | 3\n
6\n
9\n
| Passed after ignoring Presentation Error |
Test Case 2 | 2
3
1
2
3
4
5
6 | 6\n
15 | 6\n
15\n
| Passed after ignoring Presentation Error |
Week 7 : Programming Assignment 3
Write a C program to find subtraction of two matrices i.e. matrix_A - matrix_B=matrix_C.
If the given martix are
2 3 5 and 1 5 2 Then the output will be 1 -2 3
4 5 6 2 3 4 2 2 2
6 5 7 3 3 4 3 2 3
The elements of the output matrix are separated by one blank space
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 3
3
2
3
5
4
5
6
6
5
7
1
5
2
2
3
4
3
3
4 | 1 -2 3 \n
2 2 2 \n
3 2 3 | 1 -2 3 \n
2 2 2 \n
3 2 3 \n
| Passed after ignoring Presentation Error |
Week 7 : Programming Assignment 4
Write a C program to print Largest and Smallest Word from a given sentence. If there are two or more words of same length, then the first one is considered. A single letter in the sentence is also consider as a word.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | Problem Solving through Programming in C. | Largest Word is: Programming\n
Smallest word is: C | Largest Word is: Programming\n
Smallest word is: C\n
| Passed after ignoring Presentation Error |
Test Case 2 | NPTEL is a joint initiative of the IITs and IISc. | Largest Word is: initiative\n
Smallest word is: a | Largest Word is: initiative\n
Smallest word is: a\n
| Passed after ignoring Presentation Error |
No comments