FontysICT-sem1

Training method Ampere

Perform an analysis and investigate how to calculate the following:

Given a current in Amps and a voltage in Volts, what is the value of the resistance (in Ohms) over which that voltage falls (and that current flows through)? (Ohm’s law)

Write a program that satisfies the following requirements:

decimal Resistance(decimal volts, decimal amps)
{
  // put your own code in place of this line!
}

You’ve already written the fill-in code, move that existing code. In doing so, change the names of the variables if you wish.