W7_Programming_Qs.1
Due on 2023-09-14, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• at LINE-1, complete the constructor statement,
• at LINE-2 and LINE-3, complete the operator overloading function header,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | C | c: position is 3 | c: position is 3 | Passed |
Test Case 2 | G | g: position is 7 | g: position is 7 | Passed |
W7_Programming_Qs.2
Due on 2023-09-14, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below.
• at LINE-1, complete the constructor definition,
• at LINE-2, complete the overload function header,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | fun | Coding is fun | Coding is fun | Passed |
Test Case 2 | easy | Coding is easy | Coding is easy | Passed |
W7_Programming_Qs.3
Due on 2023-09-14, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• at LINE-1, complete the overload function header,
• at LINE-2, complete the casting operator statement,
• at LINE-3, complete the casting operator statement,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 | 10 15 | 10 15 | Passed |
Test Case 2 | 3 | 10 13 | 10 13 | Passed |
No comments