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]
2 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]2 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 heat engine receives heat from a heat source at 1453 C and has a thermal efficiency of 43 percent. The heat engine does maximu
xxMikexx [17]

Answer:

a) 1253 kJ

b) 714 kJ

c) 946 C

Explanation:

The thermal efficiency is given by this equation

η = L/Q1

Where

η: thermal efficiency

L: useful work

Q1: heat taken from the heat source

Rearranging:

Q1 = L/η

Replacing

Q1 = 539 / 0.43 = 1253 kJ

The first law of thermodynamics states that:

Q = L + ΔU

For a machine working in cycles ΔU is zero between homologous parts of the cycle.

Also we must remember that we count heat entering the system as positiv and heat leaving as negative.

We split the heat on the part that enters and the part that leaves.

Q1 + Q2 = L + 0

Q2 = L - Q1

Q2 = 539 - 1253 = -714 kJ

TO calculate a temperature for the heat sink we must consider this cycle as a Carnot cycle. Then we can use the thermal efficiency equation for the Carnot cycle, this one uses temperatures:

η = 1 - T2/T1

T2/T1 = 1 - η

T2 = (1 - η) * T1

The temperatures must be given in absolute scale (1453 C = 1180 K)

T2 = (1 - 0.43) * 1180 = 673 K

673 K = 946 C

8 0
3 years ago
Where are the ar manufacturers not fitting the engine in the high end sport cars
fomenos

Answer:

it depends on the but i would recommend check in the front next to the turbo intake.

8 0
2 years ago
Air entrainment is used in concrete to: __________.
Dahasolnce [82]

The answer is number 2) Increase the resistance of the concrete to freeze-thaw damage.

5 0
2 years ago
Recommend the types of engineers needed to collaborate on a city project to build a skateboard park near protected wetlands.
4vir4ik [10]

Answer:

A civil engineer.

Explanation:

Civil engineering is the science that deals with the design, creation and maintenance of constructions for civil use on the earth's surface. Thus, this specialty seeks to adapt soils to the needs of life in society, creating buildings, bridges, and all other constructions adapted to civil life, while taking care of the correct use of soils and the correct distribution of spaces and resources. to be used for such constructions.

4 0
2 years ago
What financial arguments could you use to justify your proposed
Gnoma [55]

The recommendation to segregate FLTs and the workers are as follows:-1)Reputation of warehouse:- To be in the market the reputation of warehouse should be good,it can only happen when the worker of that warehouse is happy with the management looks after worker external and internal affairs. There should be two pathways one for vehicle and other for walking in which both can’t use vice versa.2)High Profitability:- When there is no incident or accident happens between the FLTs and the workers in the warehouse then off course the worker will be regular at work then there will be high profit .3)Insurance premium:- If there is zero accident happens in the ware house then there will no claim, the company will be in the profit..

7 0
2 years ago
Other questions:
  • A manufacturer makes integrated circuits that each have a resistance layer with a target thickness of 200 units. A circuit won't
    5·1 answer
  • A heat pump and a refrigerator are operating between the same two thermal reservoirs. Which one has a higher COP?
    10·1 answer
  • if a voltage is applied to a capacitor, current flows easily at first and then slows as the capacitor becomes charged. Inductors
    5·1 answer
  • If you are in a tornado situation, which of the following actions would put you in danger?
    11·1 answer
  • This elementary problem begins to explore propagation delayand transmission delay, two central concepts in data networking. Cons
    6·1 answer
  • 4.68 Steam enters a turbine in a vapor power plant operating at steady state at 560°C, 80 bar, and exits as a saturated vapor at
    15·1 answer
  • Concrete ___ support and anchor the bottom of steel columns and wood post, which support beams that are pare of framing system o
    11·1 answer
  • PDC Bank is working on creating an AI application that enables customers to send SMS to the AI application to allow banking acti
    9·1 answer
  • 10.) A solid circular titanium control rod at 7,000 lb axial tension force where stress must not
    15·1 answer
  • It is possible to design a reactor where the scy conductor and the nitrogen/ammonia electrode operate at different temperatures.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!