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

  Determine the thermal efficiency of a carnot cycle operating

An ideal Otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 540R and 2400R.

  The valve is opened and heat is transferred so that the

a piston cylinder arrangement has two compartments a and b filled with water as shown in the figurebelow. compartment a

  Measurement of the drag force reveals a value of 0075 n

a thin flat pate that is 0.2m by 0.2m on a side is oriented parallel to an atmospheric airstream having a velocity of

  The mean solar flux at the earths surface is 200

the mean solar flux at the earths surface is 2.00 jcm-2min-1. in a nonfocusing solar collector the temperature can

  Determine a the coefficient of performance and b the heat

a carnot heat pump refrigerator operates between -7 and 29 degree c. it has an input power of 3.5kw. determine a the

  The homogeneous gate shown in fig p288 consists of one

the homogeneous gate shown in fig. p2.88 consists of one quarter of a circular cylinder and is used to maintain a water

  If the company used an interest rate of 12 per year in

the effort required to maintain a scanning electron microscope is known to increase by a fixed percentage each year. a

  A frictionless piston-cylinder device contains 16 lbm of

a frictionless piston-cylinder device contains 16 lbm of superheated water vapor at 40psia and 600 degrees fahrenheit.

  Consider a mixing chamber into which cold air enters

An air-conditioning system, streams of cold and warm air are mixed to get air with the right temperature. Consider a mixing chamber into which cold air enters at 8C and 100 kPa at a rate of 0.55 m^3 /s and warm air enters at 300C and 100 kPa. The rat..

  Determine the time ratio and crank speed of the mechanism

a process requires a conveyor to index cans 2.0 in. in 0.12s and dwell while a cover is pressed onto a can. the cap

  If she is at a location where the speed of sound is 1100

a child drops a rock into a well and hears it splash into the water at the bottom exactly 2 seconds later. if she is at

  Factors affecting the decision for the job offer

Discuss five factors which you are going to consider before making a decision whether to accept or reject the offer and Prepare an organization structure

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