PRG 218 Week 4 Individual Assignment Programming Using Structures and Classes | University Of Phoenix

PRG 218 Week 4 Individual Assignment Programming Using Structures and Classes | University Of Phoenix 

PRG 218 Week 4 Individual Assignment Programming Using Structures and Classes

 
 
Use the program in Ch. 7 of Beginning Visual C++ 2012 on p. 292 as a starting point for this assignment.
Modify the program in the following ways:
 

  • Add a third box to the calculation.
  • Calculate length (L), width (W), and height (H) for the third box.
  • Calculate the total volume for all three boxes in question.

 
Answer the following questions in your own words after making the required modifications to the program:
 

  • Under what circumstances must you use classes?
  • Why do you use a class instead of a structure? Are they interchangeable? Explain your answer.
  • Are classes more useful than structures? Why or why not?

Answer Detail

Get This Answer

Invite Tutor