W10_Programming_Qs.1
Due on 2023-10-05, 23:59 IST
Consider the following program in C++11/14 to convert between feet and inch. Fill in the
blanks as per the instructions given below:
• at LINE-1 with appropriate header to function convert,
• at LINE-2 with appropriate return statement convert,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 12 12 | 144 1 | 144 1 | Passed after ignoring Presentation Error |
Test Case 2 | 90 90 | 1080 7.5 | 1080 7.5 | Passed after ignoring Presentation Error |
W10_Programming_Qs.2
Due on 2023-10-05, 23:59 IST
Consider the following program in C++11/14. Fill in the blanks as per the instructions given
below:
• at LINE-1 with appropriate header and initialization list for the copy constructor,
• at LINE-2 with appropriate header for copy assignment operator overload,
• at LINE-3 with appropriate header and initialization list for the move constructor,
• at LINE-4 with appropriate header for move assignment operator overload,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 | 5 : 50 : 50 : moved : 5 : moved : | 5 : 50 : 50 : moved : 5 : moved : | Passed after ignoring Presentation Error |
Test Case 2 | -10 | -10 : -100 : -100 : moved : -10 : moved : | -10 : -100 : -100 : moved : -10 : moved : | Passed after ignoring Presentation Error |
No comments