Week 4 : Programming Assignment 1
Due on 2022-02-24, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
- at LINE-1 with appropriate declaration so that global operator function can access private data of class Complex,
- at LINE-2 with appropriate operator function header,
- at LINE-3 with appropriate return statement,
such that it will satisfy the given test cases.
Select the Language for this assignment.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 | 8 + j4 | 8 + j4 | Passed |
Test Case 2 | 10 | 13 + j4 | 13 + j4 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week 4 : Programming Assignment 2
Due on 2022-02-24, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
- at LINE-1 with appropriate keyword to declare the Database pointer variable,
- at LINE-2 to complete the header for function getInstance(int i),
- at LINE-3 with appropriate keyword to complete ins variable initialization
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 2
3 4 | 3 3 | 3 3 | Passed |
Test Case 2 | 3
2 4 6 | 2 2 2 | 2 2 2 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week 4 : Programming Assignment 3
Due on 2022-02-24, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
- at LINE-1 with appropriate statement so that global operator function can access private members,
- at LINE-2 with appropriate operator function header,
- at LINE-3 with appropriate operator function header,
- at LINE-4 with appropriate operator function header
such that it will satisfy the given test cases.
No comments