1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Elan Coil [88]
4 years ago
11

Multidimensional arrays can be stored in row major order, as in C , or in column major order, as in Fortran. Develop the access

functions for both of these arrangements for three-dimensional arrays.
Computers and Technology
1 answer:
larisa86 [58]4 years ago
3 0

Answer:

Access functions explained below

Explanation:

Access functions for Three Dimensional Arrays:

Let M, N and P refer to the size of the 1st 2nd and 3rd dimensions respectively.

Element_Size is the memory size the array element.

Generic access functions for Row Major:

If character data is used then Element_Size is 1.

For i=0 to P do

For i=0 to N do

  For i=0 to M do

     Address_of _array[i, j, k] = address_of_array[0,0,0] + (i * P + j * N + k) * Element_Size

    Store data into the Address_of _array[i, j, k]

    Or

  Display data from Address_of _array[i, j, k]

end

end

end        

Generic access function for Column Major:

if For i=0 to M do

For i=0 to N do

  For i=0 to P do

     Address_of _array[i, j, k] = address_of_array[0,0,0] + (i * M + j * N + k) * Element_Size

    Store data into the Address_of _array[i, j, k]

    Or

  Display data from Address_of _array[i, j, k]

end

end

end      

You might be interested in
How did the invention of the printing press affect society?
MrMuchimi

Answer:

A. More people could influence the media of that time

Explanation:

Its immediate effect was that it spread information quickly and accurately. This helped create a wider literate reading public. However, its importance lay not just in how it spread information and opinions, but also in what sorts of information and opinions it was spreading.

8 0
2 years ago
What is the error in the following line: (1)<br><br> age=int(input("Enter your age:")
Ainat [17]

Answer:

14

Explanation:

6 0
3 years ago
In cell a10 enter a formula using or to display true if net profit before tax in 2019 (cell b5) are greater than 750000(seven hu
mina [271]

The OR Excel function is a function that is used to test several conditions in one statement.

The Excel formula to display true based on the conditions in cell A10 is =OR(B5>750000,C5>750000)

From the question, we have:

  • Cell B5 represents the net profit before tax in 2019
  • Cell C5 represents the net profit before tax in 2020

The syntax of the OR logical function is: =OR([conditions])

So, the Excel formula to display true based on the conditions in cell A10 is =OR(B5>750000,C5>750000)

Read more about Excel formulas at:

brainly.com/question/14820723

4 0
3 years ago
What does ADF Means?<br><br> What does CLO Means?
Elenna [48]
ADF means 'automatic document feeder'

CLO means 'collateralized loan obligation'
3 0
4 years ago
explain the difference between a database system and a database model. discuss examples of when you would use a hierarchical, ne
SVETLANKA909090 [29]

The  difference between a database system and a database model is that Database design is saved in the place known to be database schema, which is said to also been saved in the data dictionary. Data model is said to be a group or collection of construct that is known to be used for making a database and making designs for the databases.

<h3>What is a database systems?</h3>

A database is known to be a kind of organized makeup of structured information, or data, that are said to be saved electronically in a computer system.

The hierarchical structure is known to be  used primarily to save geographic information as well as file systems.

Therefore, The  difference between a database system and a database model is that Database design is saved in the place known to be database schema, which is said to also been saved in the data dictionary. Data model is said to be a group or collection of construct that is known to be used for making a database and making designs for the databases.

Learn more about database system  from

brainly.com/question/518894

#SPJ1

3 0
2 years ago
Other questions:
  • Match the job skills with the correct job role.
    12·1 answer
  • __________bits equal one byte.EightTenSixty-fourThirty-twoSix
    10·1 answer
  • Give two separate print statements: one will print your name, the other will print your major. Ensure that both will print on th
    15·1 answer
  • What the heck is a motherboard and why is my computer not working when i take it out
    14·1 answer
  • Why would you group data in a report? SQL
    9·1 answer
  • What are the differences between the various EHRs?
    9·1 answer
  • A shortage of blood for transfusions for injured animals has resulted in the introduction of a synthesized product called Oxyglo
    15·1 answer
  • The GPS device in an automobile uses which communication channel?
    7·1 answer
  • Judy forgot where she saved a certain file on her computer. Therefore, she searches for all files with a .jpg file extension. Wh
    7·2 answers
  • Joseph wants to take out the color of the background wall from an image what can Joseph do to achieve this​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!