Describe the “ideal” file organization scheme to use with classes.
What will be an ideal response?
The “ideal” file organization scheme for use with classes is to place the declaration statement in a header file named after the class name, such as Counter.h (which contains the class Counter statements). The class definitions should be contained in the corresponding *.cpp file, such as Counter.cpp
You might also like to view...
Higher ______ will result in larger file size.
A. amplitude B. frequency C. sampling rate D. bit depth E. dynamic range
Modify the Student class getAverage() method to drop the lowest grade when calculating the average. You will need to loop through the array and find the lowest grade.
What will be an ideal response?
Why is hard disk storage much slower to access than main memory?
a) Accessing data on a hard disk requires mechanical movement of the read/write head. b) Disks are located farther from a system’s processors. c) Disks must be access via a hardware controller. d) all of the above
Case 11-1 Cindy is learning the basics of formatting Microsoft Word documents. Her trainer, Annie, is an expert at giving lessons on working with documents and how it can be enhanced for better understanding and appearance. Annie trains Cindy on how she can create a style named "Title" that would consist of all the formatting instructions, such as italic, blue, 18-point Cambria, and centered, she could apply to any paragraph in the document. Cindy decides to modify the formatting of this style to 16-point Arial on a shaded red background. Which of the following should Cindy do to apply the new formatting to all text that has the Title style?
A. ?Create a new style definition with the new formatting instead of updating the existing Title style. B. ?Change the existing style definition for "Title" that updates all text that has the Title style definition applied to the new style definition. C. ?Create a macro named "Title" that specifies formatting layouts for individual pages that can be grouped as desired. D. ?Change the filename of the document and then reapply the new formatting with an alternate Title style definition.