Question: I need the 2nd questions answer for test dated At: 2022/12/20 Seng Dewen Design a Box class with attributes including length, width and height. Define

I need the 2nd questions answer for testI need the 2nd questions answer for test dated At: 2022/12/20 Seng

dated At: 2022/12/20 Seng Dewen Design a Box class with attributes including length, width and height. Define a member function SetValues( ) that assigns values to these attributes. Define two member functions, Volume( ) and Surface( ), to calculate the volume and surface area of the BoX respectively. Define a function to determine whether the two Boxes are the same. Example Input and Output: Input the length, widht and height of boxl: 123 The volume of the boxl is: 6 The surface area of the box1 is: 22 Input the length, widht and height of box2: 116 The volume of the box 2 is: 6 The surface area of the box2 is: 26 They are different box. 2. (50%). Define a Teacher class with attributes including job number, name, phone and salary. Define a member function SetValues() to assign values to these properties. Define a member function ShowData() to output teacher information

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!