Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume that an int requires one cell in memory, that a float number requires two

ID: 3795403 • Letter: A

Question

Assume that an int requires one cell in memory, that a float number requires two cells, and that the strict members are found In contiguous memory locations with no gaps. Declare a one-dimensional array type, Weather List Type, of Weather Type components, to be indexed by values of type Month Type. Declare a variable, yearly Weather, of Weather List Type. Assign the value 1, 05 to the actual rainfall member of the July record in yearly Weather. If the base address of yearly Weather is 200, what is the address of the member that you assigned in part (b)? Declare a two-dimensional array. decade Weather, of Weather Type components, to be indexed by values of type Month Type in the first dimension. Draw a picture of decade Weather. Assign the value 26 to the Anglo Temp member of the March 2006 entry. Define a three-dimensional array at the logical level. Suggest some applications for three-dimensional arrays. Use the following declarations for Exercises 14-16. typedef char String [10]; strict Student Record {String first Name; String last Name; int id; float gpa; int current Hours; int total Hours;}; Student Record student; Student Record students [100]; Assume that an int requires one cell in memory, that a float number requires two cells, and that the strict members are found in contiguous memory locations with no gaps. Construct a member-length-offset table for Student Record. If the base address of student is 100, what address does the compiler generate as the target of the following assignment statement? student.gpa = 3.87; How much space does the compiler set aside for students?

Explanation / Answer

13)

a)A three-dimensional (3D) array is an array of arrays of arrays, More dimensions in an array means more data be held, but also means greater difficulty in managing and understanding arrays. A three dimensional array is declared using the following syntax:

Type array _name[d1][d2][d3] A 3D array is essentially an array of arrays of arrays: it's an array or collection of 2D arrays, and a 2D array is an array of 1D array. However, multidimensional arrays are very useful when you have some kind of orthogonal data space .you have several "choices" which are independent of each other.

b)Application for three-dimensional array

Echocardiography:

Echocardiography is the most clinically used diagnostic imaging modality in cardiac practice today, and with good reason. In adding to its noninvasive natural world and time- and cost-efficiency, its bedside ease of use in the clinic, emergency ward and operating room is a major advantage. Furthermore, its uncomplicated use in children, pregnant women, and those with entrenched pacemaker or defibrillators has set it apart from other closely rival imaging modalities, such as cardiovascular computed tomography (CT) and magnetic resonance imaging (MRI).

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote