A+ Work




use the example on p. 355 of the text "Ch. 7, of Ivor Horton's Beginning Visual C++ 2010" to create your own structure related to an overtime pay calculator and define the variables needed within your structure to perform those calculations. Define and create a base class using the same variables that may serve the same function as the structure. The second assignment is: Use the program on pp. 368 of the text "Ch. 7, of Ivor Horton's Beginning Visual C++ 2010" 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?