Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 test
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 informationStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started