Question: Explain what we mean by data abstraction. What is data encapsulation? Explain the programming goal to protect out data abstraction through encapsulation. Name three perspectives
Explain what we mean by "data abstraction." What is data encapsulation? Explain the programming goal "to protect out data abstraction through encapsulation." Name three perspectives from which we can view data. Using the logical data structure "a list of student academic records, " give examples of what each per sportive might tell us about the data. Consider the abstract data type Grocery Store. At the logical level, what grocery store operations might be defined for the customer? Specify (at the logical level) the operation Check Out. Write an algorithm (at the implementation level) for the operation Check Out. Explain how parts (c) and (d) represent information hiding. What composite types are predefined in the C++ language? Describe the component selectors for struts and classes at the logical level. Describe the accessing functions for struts and classes at the implementation level. Describe the component selector for one-dimensional arrays at the logical level. Describe the accessing functions for one-dimensional arrays at the implementation level. Declare a one-dimensional array, name, that contains 20 characters. If each character occupies one "cell" in memory, and the base address of name is 1000, what is the address of the cell referenced in the following statement? name [9] = 'A': Use the following declarations for Exercises 11 and 12: anon Month Type {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC); strict Weather Type {int avgHiTemp; int avgLoTemp; float actual Rain; float record Rain;}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
