Write a program in c that reads 20 integers from the user

Assignment Help Electrical Engineering
Reference no: EM13268426

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: EM13268426

Questions Cloud

Repeat parts a and b of the first exercise under the assumpt : Calculate each of the following values for the data set below (assume it is a population).{3.42, 4.10, 4.15, 4.19, 4.26, 4.85, 5.01, 6.22}
What is the heat flow down the rod : An iron bar 50 cm long is raised to a copper bar 60 cm long and of the same diameter. What is the heat flow down the rod if its cross-sectional area is 2.50 cm2
Compute its heat of vaporization : Liquid sodium can be used as a heat transfer fluid. It's vapor pressure is 40.0 torr at 633 Celsius and 400.0 Torr at 823 Celsius. Calculate its heat of vaporization.
What is an expected return : What is an expected return and why must it equal a required return? In what circumstances are these two important?
Write a program in c that reads 20 integers from the user : 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.
What is your estimate of the stock current price : The company's stock has a beta of 1.8, the risk-free rate is 3.5%, and the market risk premium is 6%. What is your estimate of the stock's current price? Round your answer to the nearest cent.
Explain what percent recovery would you expect : If the solubility of compound A in there at 0 degrees C is 2.0 g/100 mL and at 35 degrees C is 40.0 g/100 mL, how much ether would you use to recrystallize 20 g of A. What percent recovery would you expect.
Find the thevenin equivalent voltage for the open-circuit : A somewhat discharged automotive battery has an open-circuit voltage of 12.5 V and supplies 50 A when a 0.1 Ohms resistance is connected across the battery terminals. A) Find theThevenin equivalent voltage for the circuit.
Purify the mixture of benzoic acid and biphenyl : If you had a mixture of benzoic acid (C6H5CO2H) and biphenyl (C6H5C6H5), how would you purify them based on solubility/recrystallization

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Find how high does the ball rise in units of meters

As the ball rises, it gradually loses kinetic energy as its potential energy increases. At the top of its flight, when its vertical speed goes to zero, all of the kinetic energy has been converted into potential energy.

  Compare the one pole rc filters used in an active setup

1 To double the corner frequency in the low-pass and high pass two-pole filters, how would you change the values of the resistors and capacitors .2 Compare the one pole RC filters used in an active setup versus the passive setup

  Explain what is the frequency of the rotor currents

What is the frequency of the rotor currents? What is the angular velocity of the stator field with respect to the stator? With respect to the rotor?

  What is the maximum distance between pump and power source

You have a 120 VAC motor pump system. The system will work in a voltage range from 100 to 130 volts. you can count on the minimum voltage from the supplier to be 115 VAC. The wiring will consist of #14 awg which has a resistance of 2.5 ohms/1000 f..

  Explain what is the conductance of two parallel conductors

What is the relation between the conductance and the capacitance of two parallel conductors immersed in a lossy dielectric medium that has permittivity and conductivity?

  Calculate the annual average of number of photons

Calculate the annual average of number of photons within the wavelengths (0.495 um

  What is the value of the capacitor

An inductive circuit of 50 ohm resistance and 0.08H inductor are connected in series with a capacitor across a 200-V 50-Hz supply. The current is 3.8A leading. What is the value of the capacitor

  What would be the new pressure of the gas in psig

When the piston is at its bottom dead center, the gas is initially at 10 psig, 65°F, and 10.5 in 3 . After compression and when the piston is at top dead center, the gas is 180°F and occupies 1.5 in 3 . What would be the new pressure of the gas in..

  Find what output power is required from the modulator

An amplitude modulated amplifier has a radio frequency output of 50w at 100% modulation. The internal loss in the modulator is low. What output power is required from the modulator.

  Determine thickness of aluminum thinfilm based on parameters

A quartz crystal microbalance (QCM) was employed in a vacuum deposition process, where a thin film of aluminum was grown over a p-Si wafer. The oscillator frequency at the start of the process was 10.0050 MHz.

  Find the fourier series of the signal in frequency domain

A discrete periodic signal shows the signal characteristics in one period as below. find the Fourier Series (FS) of this signal in frequency domain. write down in detail of your procedures. 1; n=1 0; n=0 x[n]{ -1; n=1 1/2; n=2 3; n=3.

  Find potential energy of upper reservoir nd min amount

The Dinorwig pumped storage hydroelectric facility in Northern Wales utilizes an abandoned slate quarry named Marchlyn Mawr as the upper reservoir. 600 meters below the Llyn-Peris lower reservoir can be found. The plant contains six 288MW generato..

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