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
For each function , sketch the Bode asymptotic magnitude and asymptotic phase plots.
horrorfan [7]

Answer:

attached below

Explanation:

a) G(s) = 1 / s( s+2)(s + 4 )

Bode asymptotic magnitude and asymptotic phase plots

attached below

b) G(s) = (s+5)/(s+2)(s+4)

phase angles = tan^-1 w/s , -tan^-1 w/s , tan^-1 w/4

attached below

c) G(s)= (s+3)(s+5)/s(s+2)(s+4)

solution attached below

5 0
3 years ago
Which option distinguishes the type of software the team should use in the following scenario?
Vladimir79 [104]
C geographic mapping software
7 0
3 years ago
Seawater containing 3.50 wt% salt passes through a series of 11 evaporators. Roughly equal quantities of water are vaporized in
statuscvo [17]

Answer: the mass flow rate of concentrated brine out of the process is 46,666.669 kg/hr

Explanation:

F, W and B are the fresh feed, brine and total water obtained

w = 2 x 10^4 L/h

we know that

F = W + B

we substitute

F = 2 x 10^4 + B

F = 20000 + B .................EQUA 1

solute

0.035F = 0.05B

B = 0.035F/0.05

B = 0.7F

now we substitute value of B in equation 1

F = 20000 + 0.7F

0.3F = 20000

F = 20000/0.3

F = 66666.67 kg/hr

B = 0.7F

B = 0.7 * F

B = 0.7 * 66666.67

B = 46,666.669 kg/hr

the mass flow rate of concentrated brine out of the process is 46,666.669 kg/hr

8 0
3 years ago
A square-thread power screw is used to raise or lower the basketball board in a gym, the weight of which is W = 100kg. See the f
KIM [24]

Answer:

power = 49.95 W

and it is self locking screw

Explanation:

given data

weight W = 100 kg = 1000 N

diameter d = 20mm

pitch p = 2mm

friction coefficient of steel f = 0.1

Gravity constant is g = 10 N/kg

solution

we know T is

T = w tan(α + φ ) \frac{dm}{2}     ...................1

here dm is = do - 0.5 P

dm = 20 - 1

dm = 19 mm

and

tan(α) = \frac{L}{\pi dm}      ...............2

here lead L = n × p

so tan(α) = \frac{2\times 2}{\pi 19}

α = 3.83°  

and

f = 0.1

so tanφ = 0.1

so that φ = 5.71°

and  now we will put all value in equation 1 we get

T = 1000 × tan(3.83 + 5.71 ) \frac{19\times 10^{-3}}{2}  

T = 1.59 Nm

so

power = \frac{2\pi N \ T }{60}     .................3

put here value

power = \frac{2\pi \times 300\times 1.59}{60}

power = 49.95 W

and

as φ > α

so it is self locking screw

 

8 0
3 years ago
Imagine you are a process safety consultant and you have been tasked to make a metal refinery site DSEAR compliant. What are the
masya89 [10]

Complying with DSEAR involves:

Assessing risks. ...

Preventing or controlling risks. ...

Control measures. ...

Mitigation. ...

Preparing emergency plans and procedures. ...

Providing information, instruction and training for employees. ...

Places where explosive atmospheres may occur ('ATEX' requirements)

hse uk

4 0
2 years ago
Other questions:
  • A square aluminum plate 5 mm thick and 200 mm on a side is heated while vertically suspended in quiescent air at 40C. (A) Determ
    8·1 answer
  • 5. Assume that you and your best friend ench have $1000 to invest. You invest your money
    8·1 answer
  • Help me! Phone Phoebe on 07375410044.
    7·2 answers
  • In which forms do MOST of the Sun's energy reach Earth's surface?
    15·1 answer
  • What are the BENEFITS and RISKS of using automobiles?
    7·1 answer
  • Create a separate function file fieldtovar.m that receives a single structure as an input and assigns each of the field values t
    15·1 answer
  • An aircraft is in a steady level turn at a flight speed of 200 ft/s and a turn rate about the local vertical of 5 deg/s. Thrust
    8·1 answer
  • Help Please!!!!!!!<br><br> Whatever3443<br> Please help!
    9·2 answers
  • What do machines require in order to work?
    12·1 answer
  • For installations where the nonlinear load is huge, most consulting engineers will specify ____-rated transformers.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!