Question: please show answers with explination and please notice that Algorithms must be written using pseudo code emphasizing the notation (meta-language) Data structure Given the following

please show answers with explination and please notice that Algorithms must be written using pseudo code emphasizing the notation (meta-language)

Data structure

please show answers with explination and please notice that Algorithms must be

Given the following declarations, write a formula to locate any random record in the array evaluating all constants. i.e., calculate the actual physical memory address of element XIJ] relative to the start of the list using the indexing techniques developed in class. Assume the first unit of memory assigned by the translator is Lo. You need not do the actual arithmetic as long as you explicitly and neatly stipulate all values required for the calculation in your formulas type MyType is record EmplD array-6..6) of character, Name array1.10) of character, Age: integer, Sex: array[1..10) of character, Payrate: float, end record X: arrayf-10..15) of MyType Assume a character occupies one unit of storage storage, and a float consumes eight units of storage Hint 4A XU ] base address+ 45( J + 10 ), must show work for credit. *Given the following declarations, write a formula to locate any random record in the array evaluating all constants. i.e., calculate the actual physical memory address of element XIJ. Assume the first unit of memory assigned by the translator is La. You need not do the actual arithmetic as long as you explicitly stipulate all values required for the calculation in your formulas type WType is record EmplD arrayf-6..6) of character; Name array1.10) of character, Age: integer, Sex: array[1..10) of character, Payrate: float, end record X: arrayf-20..19) of MyType Assume a character occupies one unit of storage, an integer two units of storage, and a float consumes four units of storage Given the following declarations, write a formula to locate any random record in the array evaluating all constants. i.e., calculate the actual physical memory address of element XIJ] relative to the start of the list using the indexing techniques developed in class. Assume the first unit of memory assigned by the translator is Lo. You need not do the actual arithmetic as long as you explicitly and neatly stipulate all values required for the calculation in your formulas type MyType is record EmplD array-6..6) of character, Name array1.10) of character, Age: integer, Sex: array[1..10) of character, Payrate: float, end record X: arrayf-10..15) of MyType Assume a character occupies one unit of storage storage, and a float consumes eight units of storage Hint 4A XU ] base address+ 45( J + 10 ), must show work for credit. *Given the following declarations, write a formula to locate any random record in the array evaluating all constants. i.e., calculate the actual physical memory address of element XIJ. Assume the first unit of memory assigned by the translator is La. You need not do the actual arithmetic as long as you explicitly stipulate all values required for the calculation in your formulas type WType is record EmplD arrayf-6..6) of character; Name array1.10) of character, Age: integer, Sex: array[1..10) of character, Payrate: float, end record X: arrayf-20..19) of MyType Assume a character occupies one unit of storage, an integer two units of storage, and a float consumes four units of storage

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!