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

Assignment Help Electrical Engineering
Reference no: EM13252096

Write a program in C that reads 20 integers from the user and sums the odd numbers together and the even numbers together. The program is to output the ratio of the odd numbers to the even numbers with a precision of up to 3 decimal digits. Be sure to use loops. (i.e. "for" loops)

Reference no: EM13252096

Questions Cloud

Comprise blue zones : Researchers discovered that, among other common factors, the population of individuals that comprise "Blue Zones": In 2009, elderly individuals living alone were ____ as likely to be poor compared to those elderly persons who resided with relatives.
What it is like to be a project manager : What does the case tell you about what it is like to be a project manager? From my Military Veteran perspective, being a project manager is like being an NCO or Sergeant in the Military. You must check up on your workers and tasks.
Calculate the average value of the emf induced in the coil : A magnetic flux of 400 microwebers passing through a coil of 1200 turns is reversed in 0.1 sec. Calculate the average value of the e.m.f induced in the coil. ( HInt use Faraday's Law)
How effectively do you think rachel spent her day : What does the case tell you about what it is like to be a project manager? From my Military Veteran perspective, being a project manager is like being an NCO or Sergeant in the Military. You must check up on your workers and tasks.
Write a program in c that reads 20 integers from the user : Write a program in C that reads 20 integers from the user and sums the odd numbers together and the even numbers together. The program is to output the ratio of the odd numbers to the even numbers with a precision of up to 3 decimal digits.
What is the probability that a customer going to video store : Suppose this video store plans to buy a new copy and then there will be total 10 copies of this movie. What will be the payback time for this $50 investment?
Make the resistance of the resistor equal to 10 ohms : calculate the capacitance of the capacitor and the inductance of the inductor. for the capacitor it's going to be  1/(j*2*pi*frequency*capacitance) and (j*2*pi*frequency*inductance) for the inductor but what are the valves for the capacitance and ..
Which is the most difficult to execute correctly : Analyze the six steps involved in the rational decision-making process to determine which is the most difficult to execute correctly. Make at least two recommendations for addressing the difficulty you chose.
How much charge flows through the film : In an integrated circuit, the current density in a 2.9 ??m?thick× 71 ??m?wide gold film is 7.7×105A/m2, How much charge flows through the film in 15 min

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Calculate amount of substance transferred into the patient

If a patient is on a drip with a drip rate of f(t) = 150e^0.0167t mL/hr, calculate the amount of substance transferred into the patient over a time period of 10 hours, use time intervals of 1 hour. Compare

  Determine the total power in fm signal

An FM signal being transmitted is represented by eFM(t) = 50Sin((2)(95.1)(106)t+2Sin((2)(10)(103)t)). If the antenna impedance is 75 , determine: (a) total power in FM signal and (b) FM modulation index.

  Determine where the poles nd zeroes of the transfer function

a. Express the transfer function in descending powers of s with the coefficients of the highest power of s unity in both the numerator and denominator. b. Determine where the poles and zeroes of the transfer function are located.

  Design a 4-bit counter f using d-flip flop

The counter will use the falling edge of the clock (denoted by Clk) and have a separte reset pin (R) which will reset the counnter to 0000 when it is low (e.g. R=0). Please use D type flip-flops. write down the state diagram , and state table.

  What value of the average signal power is required

"Power Outage" refers to that the receive signal power falls below a certain threshold. Consider for a RF signal in a Rayleigh fading channel with average receive signal power 22 = - 80dBm. What will be the power outage probability of this channel..

  What is the phase shift between the input and output signal

2. Design an amplifier with a gain of 2 using Multisim.  3. What is the phase shift between the input and output signals of an inverting op amp 4. What is the phase shift between the input and output signals of a non- inverting op amp

  How many outcomes are in the event that the person is born

Find out the birthday (month and day but not year) of a randomly chosen person. What is the sample space of the experiment. How many outcomes are in the event that the person is born in July

  How to make a ram memory using a 2-d array of integers

make a RAM memory using a 2-D array of integers. This RAM will have 8 locations, each 64 bits wide. Both should be changeable and controlled by generics. This memory will be connected to a FIFO controller which I have already coded.

  How to design boost converter and inverter parameters

how to design boost converter and inverter parameters?

  How many grams of carbon dioxide are produced

When the body metabolizes glucose water and carbon dioxide are produced according to the following equation. C6H12O6 + 6 O2 --> 6 CO2 + 6 H2O If 0 g of glucose are metabolized with excess oxygen

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Find the magnetic field at the origin

A semicircular current elment of radius b is positioned in the x-y plane and has its center at the origin. A second long current element is placed along the coordinate y= -b. If current magnitude I flows through each element in clockwise direction..

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