Week 3 : Programming Assignment 1
Write a C Program to calculates the area (floating point number with two decimal places) of a Circle given it’s radius (integer value). The value of Pi is 3.14.
[Marks for Week 3 Programming assignments will not be evaluated finally. This is for users to get familiar with programming in google course builder platform]
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 42 | Area of a circle = 5538.96 | Area of a circle = 5538.96 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week 3 : Programming Assignment 2
Write a C program to check if a given Number is zero or Positive or Negative Using if...else statement.
[Week 3 programming assignments will not be considered for final evaluation]
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 14.05 | Positive number. | Positive number. | Passed |
Test Case 2 | -50 | Negative number. | Negative number. | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week 3 : Programming Assignment 3
Write a C program to check whether a given number (integer) is Even or Odd.
[This program does not carry any marks.]
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 24 | 24 is even. | 24 is even. | Passed |
Test Case 2 | 51 | 51 is odd. | 51 is odd. | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Test Case 2 | Passed |
Week 3 : Programming Assignment 4
Write a C Program to find the Largest Number (integer) among Three Numbers (integers) using IF and Logical && operator.
[Week 3 programming assignments will not be considered for final evaluation]
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 45 34 67 | 67 is the largest number. | 67 is the largest number. | Passed |
Test Case 2 | 80 -5 3 | 80 is the largest number. | 80 is the largest number. | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
No comments