Week 12 : Programming Assignment 1
Due on 2023-10-19, 23:59 IST
Write a program in C to find the factorial of a given number using pointers.
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week 12 : Programming Assignment 2
Due on 2023-10-19, 23:59 IST
Write a C program to print the Record of the Student Merit wise. Here a structure variable is defined which contains student rollno, name and score.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 3
1
Santanu
700
2
Aparna
550
3
Vivek
900 | The Merit List is :\n
3 Vivek 900\n
1 Santanu 700\n
2 Aparna 550 | The Merit List is :\n
3 Vivek 900\n
1 Santanu 700\n
2 Aparna 550\n
| Passed after ignoring Presentation Error |
Week 12 : Programming Assignment 3
Due on 2023-10-19, 23:59 IST
Write a C program to store n elements using Dynamic Memory Allocation - calloc() and find the Largest element
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
200
300
500
100
400 | Largest element = 500.00 | Largest element = 500.00 | Passed |
Week 12 : Programming Assignment 4
Due on 2023-10-19, 23:59 IST
Write a C program to find the sum of two 1D integer arrays ‘A’ and ‘B’ of same size and store the result in another array ‘C’, where the size of the array and the elements of the array are taken as input.
In the Test case the input is given as follows
5
10
20
30
40
50
1
2
3
4
5
So the output will be displayed as
Result is
11
22
33
44
55
Write the program accordingly. Use dynamic memory allocation.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
10
20
30
40
50
1
2
3
4
5 | Result is\n
11\n
22\n
33\n
44\n
55 | Result is\n
11\n
22\n
33\n
44\n
55\n
| Passed after ignoring Presentation Error |
Test Case 2 | 4
100
200
300
400
400
300
200
100 | Result is\n
500\n
500\n
500\n
500 | Result is\n
500\n
500\n
500\n
500\n
| Passed after ignoring Presentation Error |
NPTEL Problem Solving Through Programming In C Week 12 : Programming Assignment 1-5
netaji gandi
Wednesday, October 18, 2023