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

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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