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
masya89 [10]
3 years ago
15

Write a program that uses a function called Output_Array_Info. Output_Array_Info Properties: Input Parameters: 1. A pointer to a

n integer called array_ptr. This will be used to point to an array of integers. 2. An integer that stores the size of the array.
Engineering
1 answer:
Artyom0805 [142]3 years ago
8 0

Answer:

C++ code explained below

Explanation:

Please note the below program has been tested on ubuntu 16.04 system and compiled using g++ compiler. This code will also work on other IDE's

-----------------------------------------------------------------------------------------------------------------------------------

Program:

-----------------------------------------------------------------------------------------------------------------------------------

//header files

#include<iostream>

//namespace

using namespace std;

//function defintion

void Output_Array_Info(int *array_ptr, int size)

{

//display all array elements

cout<<"Array elements are: "<<endl;

for(int i =0; i<size; i++)

{

cout<<*(array_ptr+i)<<endl;

}

//display address of each element

cout<<endl<<"memory address of each array elemnt is: "<<endl;

for(int i =0; i<size; i++)

{

cout<<array_ptr+i<<endl;

}

}

//start of main function

int main()

{

//pointer variables

int *pointer;

//an array

int numbers[] = { 5, 7, 9, 10, 12};

//pointer pointing to array

pointer = numbers;

//calculate the size of the array

int size = sizeof(numbers)/sizeof(int);

//call to function

Output_Array_Info(numbers, size);

return 0;

}

//end of the main program

You might be interested in
What do u call a bad bird
statuscvo [17]

Answer:

A buzzerd

Explanation:

4 0
3 years ago
Consider a Pitot static tube mounted on the nose of an experimental airplane. A Pitot tube measures the total pressure at the ti
kotykmax [81]

Answer:

M∞ = 0.53

M∞ = 1.5

M∞ = 3.1

Explanation:

Find: For each case the free stream Mach number.

-Pitot pressure=1.22×10^5N/m2 , static pressure=1.01 × 10^5N/m2 .

Solution:

- The free stream Mach number is a function of static to hydrodynamic pressures. So for this case we have:

            P = 1.01 × 10^5 .. static pressure

            Po = 1.22×10^5   ... pitot pressure ( hydrodynamic )

- Take the ratio:

            P / Po = (1.01 × 10^5) / (1.22×10^5) = 0.8264.

- Use Table A.13 and look up the ratio P/Po = 0.8264 for Mach number M∞.

            M∞ = 0.53

Find:

-Pitot pressure=7222 lb/ft^2 , static pressure=2116 lb/ft^2

Solution:

- The free stream Mach number is a function of static to hydrodynamic pressures. So for this case we have:

            P = 2116 .. static pressure

            Po = 7222   ... pitot pressure ( hydrodynamic )

- Take the ratio:

            P / Po = (2116) / (7222) = 0.2930.

- However, since this is supersonic, a normal shock sits in front of the Pitot tube.  Hence, Po is now the total pressure behind a normal shock wave. Thus, we have  to use Table A.14.

            P1 = 2116 .. static pressure

            Po2 = 7222   ... pitot pressure ( hydrodynamic )

- Take the ratio:

            Po2 / P1 = (7222) / (2116) = 3.412.

- Use Table A.14 and look up the ratio Po2/P1 = 3.412 for Mach number M∞.

            M∞ = 1.5

Find:

-Pitot pressure=13197 lb/f^t2 , static pressure=1020 lb/ft^2

Solution:

- The free stream Mach number is a function of static to hydrodynamic pressures. So for this case we have:

            P = 1020 .. static pressure

            Po = 13197   ... pitot pressure ( hydrodynamic )

- Take the ratio:

            P / Po = (1020) / (13197) = 0.0772.

- Again, since this is supersonic, a normal shock sits in front of the Pitot tube.  Hence, Po is now the total pressure behind a normal shock wave. Thus, we have  to use Table A.14.

            P1 = 1020 .. static pressure

            Po2 = 13197   ... pitot pressure ( hydrodynamic )

- Take the ratio:

            Po2 / P1 = (13197) / (1020) = 12.85.

- Use Table A.14 and look up the ratio Po2/P1 = 12.85 for Mach number M∞.

            M∞ = 3.1

3 0
3 years ago
BAGAIMANA CARA MENINGKATKAN PRODUKTIVITAS ? APA SAJA VARIABEL
morpeh [17]

Answer:

;-;

Explanation:

am i dyslexic or is this another language

5 0
3 years ago
Read 2 more answers
Impedance is defined as the total opposition to current in an AC circuit. Question 17 options: True False
ArbitrLikvidat [17]

Answer: True

Explanation:

The total opposition to current flow in an AC circuit is known as Impedance.

8 0
2 years ago
I hit someone with my car because he tried to hijack it.
Dmitry [639]
Depends on your defense and probably
7 0
3 years ago
Read 2 more answers
Other questions:
  • Use Newton's method to determine the angle θ, between 0 and π/2 accurate to six decimal places. for which sin(θ) = 0.1. Show you
    12·1 answer
  • A strain gage is carefully matched with three fixed-bridge resistors, each having a resistance of 120 2 The gage factor is 2.05,
    9·1 answer
  • What is the period if the clock frequency is 3.5 GHz?
    10·1 answer
  • Electronic components are often mounted with good heat conduction paths to a finned aluminum base plate, which is exposed to a s
    14·1 answer
  • Joinn my zo om lets play some blookets<br> 98867 708157<br> 9dPQPW
    14·1 answer
  • Steam enters a heavily insulated throttling valve at 11 MPa, 600°C and exits at 5.5 MPa. Determine the final temperature of the
    14·1 answer
  • What function or functions in the body might be affected if a person fell and injured the back of their head?
    9·2 answers
  • for DC electrode positive, or reverse polarity you will have a negative work cable and what type of electrode?
    5·1 answer
  • The product of two factors is 4,500. If one of the factors is 90, which is the other factor?
    6·1 answer
  • How do you build a engine best anwser will get marked as brainlist
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!