Question: Hi, im having trouble with this assiment could someone write a program in basic C language for this so i can check my work. The
Hi, im having trouble with this assiment could someone write a program in basic C language for this so i can check my work.
The bottom picture is of the "circuits.txt" file discribed in the assiment.

Thank you so much!!
ENGR 200 FALL 2018 P5: SIMPLE CIRCUIT ANALYSIS (using input/output data files, for loops, and if/else structures) DUE: October 17, 2018, at 11:59 p.m. US Central Time POINTS: 55 INTRODUCTION An example of a simple resistor circuit is displayed below 1 V1 R1 In such circuits, Vl is a voltage source(V) and R1 is a resistor (). The current in these circuits may be calculated using Ohm's law: The power dissipated across the resistor is In the above equations, I is the current in amps (A), Vis the voltage in volts(V), R is the resistance in ohms () and P is the power in Watts (W) An input data file called circuits contains voltage and resistance information for a set of simple resistor circuits The first record line of the input file is the control number, which defines the number of circuits to be read into the program. Each succeeding record line has two columns, where the first column is the voltage and the second column is the resistance. The input file is comma delimited ASSIGNMENT Write a C program that will read the required values from the input file. Using the voltage and resistance compute the current in each circuit and the power dissipated by the resistor in each circuit. Your program will produce a report in tabular format. Print the table to the computer screen and to an output file called levels. Once the program is working, modify the program to account for any current that is greater than 0.1 amp Instead of printing the normal column items, for any circuit with current greater than 0.1 amp, print the voltage the resistance, and then print a message that the current may be fatal. The output format is shown on page 2 Use the "Code Sections.c" template to write your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
