Take arrays from main and sum the arrays

Assignment Help Mechanical Engineering
Reference no: EM13713373

1. Develop a C program to print the sum, the average, the product, the largest and the smallest of 3 integers that are input from the keyboard.

2. Define an array x of size 5, using call-by-reference (that is, use pointer) to pass the array to a function, named summation.

In main: define array, print out the array, pass the array and show the results on screen.

In function summation: take arrays from main and sum the arrays using the formula below sum=4summation0 xi*xi

Reference no: EM13713373

Questions Cloud

Vapor compression refrigeration cycle : A vapor compression refrigeration cycle is used. The working fluid is R134a. The fluid at the compressor inlet is a superheated vapor with a pressure p1 = 200 Kpa   and a temperature T1 = 10°C. The compressor pressure ratio p2/p1 = 8, the fluid exits..
Evaluate what is the current through the wire : 2.00 ×1020 electrons flow through a cross section of a 3.00mm diameter iron wire in 6.00s. The electron density of iron is n =8.5×1028 m3. What is the current through the wire
Determine the radial and tangential stress distributions : A steel flywheel 25 mm thick with an outer diameter of 1 m and an inner diameter of 200mm is rotating at 100 hz. Determine the radial and tangential stress distributions as a function of radial position r. Plot the distribution
What electron current is driven through iron wire : What electron current is driven through a 1.8-mm-diameter iron wire by a 0.070V/m electric field
Take arrays from main and sum the arrays : Develop a C program to print the sum, the average, the product, the largest and the smallest of 3 integers that are input from the keyboard. Define an array x of size 5, using call-by-reference (that is, use pointer) to pass the array to a function, ..
Estimate what is the total distance traveled : A small plane travels 256.4 km, 47.1 degrees west of due north, then travels 295.7 km, 5.6 degrees east of due south. What is the total distance traveled
Find the temperature of the hot filament : A certain light bulb has a tungsten filament with a resistance of 20.7 Ohms when at 20.0°C and 139 Ohms when hot. Find the temperature of the hot filament
Calculate the magnitude of the force applied by the man : A man pushes on a piano with mass 170kg so that it slides at constant velocity down a ramp that is inclined at 11.9 degrees above the horizontal floor. Calculate the magnitude of the force applied by the man if he pushes parallel to the floor
What minimum product of overall heat transfer coefficient : A swimmer with body mass 50 kg is pulled from the ocean with hypothermia. Her body temperature is 27°C. She is connected to a shell and tube heat exchanger. Blood flow through the device is kept constant at 1,000 ml/min. The perfusionist adjusts the ..

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  The sales director wants to modernize the design by making

the company you work for makes the casting for the rectangular pan 300 mm long x 200 mm wide x 60 mm deep with a 3 mm

  Determine an appropriate value for the rods diameter to

an engineer determines that a 40-cm-long rod of 1020 grade steel will be subjected to a tension of 20 kn the following

  Write down all equations necessary for this in a symbolic

hot air at a temperature of 60c is flowing through a steel pipe of 10 cm diameter. the pipe is covered with two layers

  A short cylindrical block of 6061-t6 aluminum having an

a short cylindrical block of 6061-t6 aluminum having an original diameter of 25 mm and a length of 125mm is placed in a

  A nozzle with inlet area of 800 cm2 and inlet steam

a nozzle with inlet area of 800 cm2 and inlet steam velocity is 10ms. the steam pressure is 800kpa and temperature is

  Kinematic viscosity and specific gravity of a liquid

The kinematic viscosity and specific gravity of a liquid are 3.5*10^-4 and .79. What is the dynamic viscosity of the liquid in SI units also determine the acoustic velocity, assuming a bulk modulus of 1.06E9 Pascals

  An aircraft flying at 10000 feet uses a pitot-static tube

an aircraft flying at 10000 feet uses a pitot-static tube to measure speed. the instrumentation on the aircraft

  Oil has a specific gravity

Oil flows at a rate of 12gpm from a vented tank (pressure at point 1 is zero) through 1 inch inner diameter pipes and elbows, and through a pump and motor as shown. The pump adds HHPp= 3hp to and the motor extracts HHPm= 1hp from the fluid power.

  Determine a the exit temperature in k b the isentropic

argon enters an insulated nozzle at 277 kpa 1300 k 10 ms and exits at 100 kpa 645 ms. for steady-state operation

  What tension can be applied to the conductor if the

an electrical conductor is composed of a steel core 116 inch in diameter surrounded by a 364 inch thick shell of

  Undergoes a reversible adiabatic process

In a polytropic process, a fluid is compressed to 2.75 times its initial pressure, whereas its temperature becomes1.65 times. What is the fluids index of expansion, n? 1.2kg of Air at a pressure of 2.15MPa and a temperature of 585K, undergoes a rever..

  An insulated tank is divided into two parts by a partition

An insulated tank is divided into two parts by a partition. One part of the tank contains 2.5 kg of compressed liquid water at 60°C and 600 kPa while the other part is evacuated.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd