Assignment 2
Assignment 2
Assignment 2
Assignment No. 2
Instructions:
• Make sure that you read and understand each instruction.
• The assignment contains a single problem divided into three subtasks.
• Write all your code in a single .cpp file.
• Name the .cpp file as IDNumber.zip (e.g., 200449669.zip).
• Submit the .cpp file on UR Courses within the deadline.
• Start early otherwise you will struggle with the assignment.
• Not following instructions will result in deduction of marks.
• Write your own solutions. A copied solution will result in a zero mark for both parties
involved.
Box 1 dimensions: length = 5'-3", width = 2'-7.5", height = 3'-8" and volume = 50.53125
Box 2 dimensions: length = 4'-6", width = 9'-3", height = 2'-4" and volume = 97.125
Box 3 dimensions: length = 4'-6", width = 9'-3", height = 2'-4" and volume = 97.125
Box 4 dimensions: length = 3'-3", width = 9'-3", height = 2'-4" and volume = 70.145828
The largest box has dimensions: length = 4'-6", width = 9'-3", height = 2'-4" and volume = 97.125
The smallest box has dimensions: length = 5'-3", width = 2'-7.5", height = 3'-8" and volume = 50.53125
Marks
Distance class, its data members and member functions 4
Box class, its data members and member functions 8
Main function and its code 4
Validity checks 2
Code organization and readability 2
Total 20