Write a program in c that reads integers from users

Assignment Help Electrical Engineering
Reference no: EM13252397

Write a program in C not C++ that reads 20 integers from the user and sums the odd and even numbers together. Also have the program output the ratio of the odd numbers to the even numbers.

Reference no: EM13252397

Questions Cloud

Then write a blog entry : The following excerpt from Stanford''s Encyclopedia of Philosophy: Then write a blog entry (3-6 paragraphs) on the following topic: Should wearable devices that can capture, store and track (public) information such as Google Glass be allowed in publ..
Find the electric force acting on charge : Two point charges of + 40.0 ?C and - 10.0 ?C are separated by a distance of 20.0 cm. A +7.00 ?C charge is placed midway between these two charges. What is the electric force acting on this charge
State what is the molar absorptivity of the unknown compound : A 2.78 10-4 M solution of a compound has an absorbance of 0.451 at 520 nm in a 1.00 cm cell. The solvent's absorbance under the same conditions is 0.019. What is the molar absorptivity of the unknown compound
Find the maximum speed of the jumper : The Royal Gorge bridge over the Arkansas River is 360 m above the river. A bungee jumper of mass 93 kg has an elastic cord of length 85 m attached to her feet. Find the maximum speed of the jumper
Write a program in c that reads integers from users : Write a program in C not C++ that reads 20 integers from the user and sums the odd and even numbers together. Also have the program output the ratio of the odd numbers to the even numbers.
Explain what is the density of ar gas : What is the density of Ar gas (molar mass, 39.95 g mol-1) at 21.2oC and 1.10E2 kPa? Give your answer in grams per litre (g L-1), accurate to three significant figures
Why might an organizational want to design jobs : Why might an organizational want to design jobs according to the priciples of scientific management?
What speed does the balloon have : A balloon is initially stationary and full of air. The air in the balloon has a mass of 2 g. What speed does the balloon have
Explain the mass of the anode remains the same : During the electrolysis of an aqueous solution of CuSo4 using inert electrodes, the mass of the anode remains the same but the cathode gains mass

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Calculate developed torque at a full load armature current

A 600 V, dc shunt motor has armature and field resistance of 15 ohms and 600 ohms respectively. When the motor runs unloaded, the ine current is 3 A, and the speed is 1000rpm. Calculate the developed torque at a full load armature current of 50 A.

  What is the value of the smallest resistor

The voltage drops across three resistors in series are measured 10V, 15V, and 25V. If the largest resistor is 47 ohms, what is the value of the smallest resistor?

  Find the frequency response of the system

For the system represented by the following difference equation y[n] = 0.5x[n] + 0.5x[n - 1] find: (a) the transfer function H(z) of the system. (b) the frequency response H(e^jw) of the system.

  Ziegler-nichols open loop tuning

Ziegler-Nichols Open Loop Tuning Often, when working with a faster loop, many people will opt only for a PI control philosophy

  Determine the theoretical component values of opamp

Design an amplifier circuit which uses an OpAmp and is powered by dual 15 V power supplies, and which has the following characteristic at low frequencies: Vout = 3V1 - 5V2 1. State the information which is extracted from the equation.

  Find current of phase b in polar form

In a balanced three-phase system the Y-connected impedances are 3∠60°Ω. If V_bc=480∠-75° V, find current of phase "b" in polar form.

  Explain resistance of headlights

Resistance of Headlights, A 24-volt automotive battery is connected to two headlights, such that the two loads are in parallel

  Find system function and check is system is stable

Consider the LTI described by the following input-output relation: y[n] = 3/4y[n-1]-1/8y[n-2]+x[n] a)Find system function H(z) and check is system is stable. b)Determine impluse response h[n] of system

  What are the theoretical resolution and depth-of-focus

The required exposure energy for a positive photoresist is 140 mJ/cm2 and for a negative photoresist is 9 mJ/cm2. Assuming negligible times for loading and unloading wafers, compare the wafer throughput for positive photoresist and negative photor..

  Design a second-order band-pass iir filter with centre freq

Design a second-order band-pass IIR filter with center frequency of 450 Hz when the sampling frequency is 2,000 Hz. In order to ensure the filter stability, set the poles at 0.96 radial distant from the origin

  Find relative uncertainty in the indirectly measured power

If voltage and resistance are measured as a means of indirectly measuring power, show again that if the relative uncertainties in the direct measurements are +2%, that the relative uncertainty in the indirectly measured power will be +6%.

  What is the value of resistance that must be chosen

Imagine a circuit consisted of two DC power sources of 12 volt and 10 volts. The negative terminals of these power sources are wired together. Assume that the positive terminals of these power sources are labeled as A and B respectively.

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