0

I have to create code for this:

A voltage source supplies a load through a resistor. The
voltage source has a rating of 1000 volts and a power rating
of 10000 watts. The resistor is 5 ohms with a power ratings
of 118.975 watts. The resistance of the load may vary
randomly between 200 and 600 ohms. Using 100000 samples
calculate the number of times the power rating of the resistor is exceeded, average power delivered by source, maximum power delivered by source, and the minimum power delivered by source.

The output of the program should consist of 4 numbers,
each number being output on a separate line in the order
listed above. The numbers should be output with a precision
of 2.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by brains89
0

Use a for loop and some random number generation.
Other than that its basic maths

Note:
V = I × R
P = I × V

Its quite simple once you think about it. We aint gonna do your homework for you.

0

Use a for loop and some random number generation.
Other than that its basic maths

Note:
V = I × R
P = I × V

Its quite simple once you think about it. We aint gonna do your homework for you.

Ok im not asking anyone to do my homework for one, i'm trying to get someone to explain it to me what to do

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.