Week 4 : Programming Assignment 1
Due on 2023-08-24, 23:59 IST
Write a C Program to Find the Smallest Number among Three Numbers (integer values) using Nested IF-Else statement.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 80 40 90 | 40 is the smallest number. | 40 is the smallest number. | Passed |
Test Case 2 | 77 88 -99 | -99 is the smallest number. | -99 is the smallest number. | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week 4 : Programming Assignment 2
Due on 2023-08-24, 23:59 IST
The length of three sides are taken as input. Write a C program to find whether a triangle can be formed or not. If not display “This Triangle is NOT possible.” If the triangle can be formed then check whether the triangle formed is equilateral, isosceles, scalene or a right-angled triangle. (If it is a right-angled triangle then only print Right-angle triangle do not print it as Scalene Triangle).
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 9 9 9 | Equilateral Triangle | Equilateral Triangle | Passed |
Test Case 2 | 5 12 13 | Right-angle Triangle | Right-angle Triangle | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week 4 : Programming Assignment 3
Due on 2023-08-24, 23:59 IST
Write a program to find the factorial of a given number using while loop.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 | The Factorial of 5 is : 120 | The Factorial of 5 is : 120 | Passed |
Test Case 2 | 10 | The Factorial of 10 is : 3628800 | The Factorial of 10 is : 3628800 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week 4 : Programming Assignment 4
Due on 2023-08-24, 23:59 IST
Write a Program to find the sum of all even numbers from 1 to N where the value of N is taken as input. [For example when N is 10 then the sum is 2+4+6+8+10 = 30]
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 10 | Sum = 30 | Sum = 30 | Passed |
Test Case 2 | 15 | Sum = 56 | Sum = 56 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
No comments