subject
Engineering, 05.05.2020 04:34 Nathanr23

Programming Assignment 7: Circuit Problem Generator P07
Complete and upload C program that will accomplish the following:
Create random integers values for Vs, R1 and R2 in the circuit (keep the Vs values under 100, and R1 and R2 values under 5000).
Calculate the solution for i, v1 and v2 from the values generated in Step 1 (precision 1e-3 with truncation).
Present the random values generated in Step 1 to the user and query for the answers for i, v1 and v2.
Compare the user input values to the calculated ones and give feedback on correctness (success, failure).
Restart program at Step 1 generating new values unless user chooses option to "exit" the program.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 19:20
A21-tooth spur pinion mates with a 28-tooth gear. the diametral pitch is 3 teeth/in and the pressure angle is 20°, find the following values: the addendum, dedendum, circular pitch, tooth thickness, and base circle diameters.
Answers: 2
You know the right answer?
Programming Assignment 7: Circuit Problem Generator P07
Complete and upload C program that wil...
Questions
question
Biology, 02.08.2019 08:40
question
Mathematics, 02.08.2019 08:40
question
Chemistry, 02.08.2019 08:40
Questions on the website: 13722359