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
A compound sliding miter saw can be used to make
Sunny_sXe [5.5K]

Answer:

D

Explanation:

3 0
2 years ago
What do u call a bad bird
statuscvo [17]

Answer:

A buzzerd

Explanation:

4 0
3 years ago
Should aircraft wings have infinite stiffness?
Colt1911 [192]

Answer:

No, they need to be somewhat flexible so that forces such as turbulance don't shear the wing off.

3 0
3 years ago
Read 2 more answers
A microwave transmitter has an output of 0.1W at 2 GHz. Assume that this transmitter is used in a microwave communication system
Len [333]

Answer:

gain = 353.3616

P_r = 1.742*10^-8 W

Explanation:

Given:

- The output Power P_o = 0.1 W

- The diameter of the antennas d = 1.2 m

- The frequency of signal f = 2 GHz

Find:

a. What is the gain of each antenna?

b. If the receiving antenna is located 24 km from the transmitting antenna over a free space path, find the available signal power out of the receiving antenna.

Solution:

- The gain of the parabolic antenna is given by the following formula:

                            gain = 0.56 * 4 * pi^2 * r^2 / λ^2

Where, λ : The wavelength of signal

            r: Radius of antenna = d / 2 = 1.2 / 2 = 0.6 m

- The wavelength can be determined by:

                            λ = c / f

                            λ = (3*10^8) / (2*10^9)

                            λ = 0.15 m

- Plug in the values in the gain formula:

                            gain = 0.56 * 4 * pi^2 * 0.6^2 / 0.15^2

                            gain = 353.3616

- The available signal power out from the receiving antenna is:

                            P_r = (gain^2 * λ^2 * W) / (16*pi^2 * 10^2 * 10^6)

                            P_r = (353.36^2 * 0.15^2 * 0.1) / (16*pi^2 * 10^2 * 10^6)

                            P_r = 1.742*10^-8 W

4 0
3 years ago
Air at T1 = 32°C, p1 = 1 bar, 50% relative humidity enters an insulated chamber operating at steady state with a mass flow rate
RUDIKE [14]

Answer:

4.5kg/min

Explanation:

Given parameters

T_1 = 32^0 C,  m_1 = 3 kg/min, T_2 = 7^0 C ,T_3 = 17^0

if we take  

The mass flow rate of the second stream = m_2(kg/min)

The mass flow rate of mixed exit stream = m_3 (kg/min)

Now from mass conservation

m_3 = m_2 + m_1

m_3 = m_2 + 3 (kg/min)

The temperature of the mixed exit stream given as

T_3m_3 = T_2m_2 +T_1m_1\\\\17 ( 3 + m_2) = 7 \times m_2 + 32 \times 3\\\\51 + 17 m_2 = 7 m_2 + 96\\\\10 m_2 = 96 - 51\\\\m_2 = 4.5 kg/min\\\\\\\\

Therefore the mass flow rate of second stream will be 4.5 kg/min.

7 0
3 years ago
Other questions:
  • A murder in a downtown office building has been widely publicized. You’re a police detective and receive a phone call from a dig
    9·2 answers
  • Air is compressed adiabatically from p1 1 bar, T1 300 K to p2 15 bar, v2 0.1227 m3 /kg. The air is then cooled at constant volum
    13·1 answer
  • Compare automation and autonomous
    12·1 answer
  • What is the steady-state value of the output of a system with transfer function G(s)= 6/(12s+3), subject to a unit-step input?
    5·1 answer
  • Basic output with variables (Java) This zyLab activity is intended for students to prepare for a larger programming assignment.
    7·1 answer
  • The price of a single item within a group of items is
    8·1 answer
  • 3. A particle is projected to the right from the position S = 0, when an initial velocity of 8 m/s. If the acceleration of the p
    6·1 answer
  • A skull and crossbones pictogram indicates this kind of information about a chemical.
    14·1 answer
  • which acpi power state allows a system to start where it left off, but all other components are turned off? sleeping mechanical
    13·1 answer
  • I’m in Sociology Class guys and I need help on this question!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!