Write a program for input temperatures for consecutive days

Assignment Help Electrical Engineering
Reference no: EM13263609

Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function that will return the average of the temperatures. It will also call a function that will return the highest temperature and a function that will return the lowest temperature. The user will input the number of temperatures to be read. There will be no more than 50 temperatures. The average should be displayed to two decimal places.

Reference no: EM13263609

Questions Cloud

Evaluate the half life of the sample : A sample contains 8.30×104 radioactive nuclei. In a time of 5 minutes, Evaluate the half life of the sample
What is the speed of the boat with respect to the ground : A boat is traveling upstream at 20 km/h with respect to the water of a river. The water is flowing at 4.0 km/h with respect to the ground. What is the speed of the boat with respect to the ground
Find what is the input power to the transmitter : A collector modulated transmitter has a supply voltage of 48 V and an average collector current of 600 mA. What is the input power to the transmitter. How much modulating signal power is needed to produce 100 percent modulation.
Topic returning home-impact of cultural differences : Prepare an essay on "Topic Returning Home-Impact of Cultural Differences"
Write a program for input temperatures for consecutive days : The program will store these values into an array and call a function that will return the average of the temperatures. It will also call a function that will return the highest temperature and a function that will return the lowest temperature.
What was the amount of the costs incurred by the firm : The tax rate was 40 percent. What was the amount of the costs incurred by the firm?
Compare the depreciation schedules : Use the half-year convention for both methods. Compare the depreciation schedules before and after taxes using a 40% tax rate. What do you notice about the difference between these two methods?
Design a pulse-mode automatic vending machine : design a pulse-mode (Asynchronous, no clock) automatic vending machine. The candy bars inside the machine cost 25 cents. The machine accepts nickels, dimes and quarters. There is an electromechanical system that accepts the coins sequentially.
What is avicorps pre-tax cost of debt : Avicorp has a $11.7 million debt issue outstanding, with a 5.8% coupon rate. The debt has semi-annual coupons, the next coupon is due in six months, and the debt matures in five years. It is currently priced at 95% of par value.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Design a simple pnp current source for output current

(a) Design a simple PNP current source to give an output current of IO = 0.5 mA (nominal value). The transistor parameters are f = 50, VEE = 10 V, VCC = 10V, |VBE| = 0.7 V, |VCEsat| = 0.3 V and VA = 50 V (for all transistors)

  Find the output for an input of the system

A fiber optic audio system consists of an input, a playback head that has a transfer function of .7, an amplifier with a gain of 6 and a speaker system with a transfer function of .4. Find the output for an input of 0.08V

  Determine how many frames are allocated to process d

A pool of 200 frames exists for paging of processes A, B, C, D, and E. The processes' page sizes are 100, 200, 50, 150, and 500, respectively. Assuming proportional frame allocation is being deployed, how many frames are allocated to process D

  Determine the exit velocity and the exit temperature

Steam at 3.45 MPa, 260oC enters a well-insulated valve operating at steady state with a mass flow rate of 0.05 kg/s through a 2.54 cm diameter pipe. The steam expands to 1.40 MPa with no significant change in elevation.

  Determine the cone angle that will match the line

(a) Determine the cone angle that will match the line to an infinite length biconical antenna. (b) For the cone angle of part (a), determine the two smallest cone lengths that will resonate the antenna.

  Create and test a function called celsius to convert temp

Create and test a function called celsius to convert degrees Celsius to degrees Fahrenheit. The equation for converting temperatures in Celsius to Fahrenheit is T_f=9/5 T_c+32 Display the results as a conversion table for six different temperature..

  Calculate the resistor- inductor value and capacitor value

Basic boost converter that takes in 600VDC and boost the voltage to 900VDC with an output power of 8KW and a switch with a frequency of 250KHZ. One inductor one switch one capacitor and one resistor.

  Compute the mechanical energy of the turbine

A natural gas power plant has a condenser that extracts 28,000 Btu/kg of natural gas. Compute the mechanical energy of the turbine and the overall system efficiency

  Implement a multiple mode counter

Implement a multiple mode counter

  Determine whether the system described by is causal

Determine whether the system described by (1) y[n]=log(nx[n]), (2) y[n]=sqrt(n)*x[n+1], (3) y[n]=x[n-2]u[n], where a is an integer and |a|>1, is (i) memoryless; (ii) invertible; (iii) causal; (iv) stable; (v) time invariant; (vi) linear

  Draw the state diagram for the 2-bit down-counter

Using your knowledge of ‘State Machine' design from logic design principles, draw the state diagram for the 2-bit down-counter, generate the state transition table, the flip-flip input equations for D Flip Flop, and finally the logic diagram of th..

  Find the average force on the ball from the players foot

A soccer player kicks a soccer ball of mass 0.45 kg that is initially at rest. The player's foot is in contact with the ball for 1.1 x 10-3 s, and the force of the kick is given by F(t) = [(6.1 x 105)t - (2.3 x 108)t2] N for 0 t 1.1 x 10-3s, where ..

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