Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started