Question

write program that calculate voltage,current and resistance

write program that calculate voltage,current and resistance

Homework Answers

Answer #1

It is not stated which language to use for the program. Hence, MATLAB is used.

Also, without any other information, the Ohm's law is shown in the program which can calculate voltage when current and resistance are input.

clc;
clear;

i = input("Input current value in amphere");
r = input("Input resistance value in ohms");
v = i*r;

fprintf("The voltage is %f volts",v);

Output:

Input current value in amphere
0.01
Input resistance value in ohms
10
The voltage is 0.100000 volts
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a program display the following menu: Ohms Law Calculator 1. Calculate Resistance in Ohms 2....
Write a program display the following menu: Ohms Law Calculator 1. Calculate Resistance in Ohms 2. Calculate Current in Amps 3. Calculate Voltage in volts 4. Quit Enter your choice (1-4) If the user enters 1, the program should ask for voltage in Volts and the current in Amps. Use the following formula: R= E/i Where: E= voltage in volts I= current in amps R= resistance in ohms If the user enters 2 the program should ask for the voltage...
Rearrange the formula current = voltage/resistance to express resistance in terms of current and voltage. Find...
Rearrange the formula current = voltage/resistance to express resistance in terms of current and voltage. Find the resistance of the hair dryer.
A voltage V across a resistance R generates a current I=V/R. If a constant voltage of...
A voltage V across a resistance R generates a current I=V/R. If a constant voltage of 11 volts is put across a resistance that is increasing at a rate of 0.6 ohms per second when the resistance is 8 ohms, at what rate is the current changing?
In an experiment to investigate the relationship between current, voltage and resistance, the resistance values obtained...
In an experiment to investigate the relationship between current, voltage and resistance, the resistance values obtained for the resistor was a constant. Give possible reasons for arriving at this constant value for the resistance ?
using ohm's law, calculate the voltage across a conductor with a resistance of 10 ohms, passing...
using ohm's law, calculate the voltage across a conductor with a resistance of 10 ohms, passing a current of 1.2A
why a higher transmission voltage is advantageous. Source voltage = 5V Line resistance = 1 Ohm...
why a higher transmission voltage is advantageous. Source voltage = 5V Line resistance = 1 Ohm Load resistance = 4 Ohm Calculate the following for each Current in the circuit Power dissipated by the line resistance Power dissipated in the load Total power delivered Ratio of power lost due to line resistance to power dissipated in the load
Calculate the terminal voltage for a battery with an internal resistance of 0.620 and an emf...
Calculate the terminal voltage for a battery with an internal resistance of 0.620 and an emf of 6.50 V when the battery is connected in series with the following components.
a) How are voltage, current and resistance of a circuit related? b) What is an electric...
a) How are voltage, current and resistance of a circuit related? b) What is an electric field? c) What is a magnet? d) What is a magnetic field? please type your responses.
describe the relationships for up to three resistors, among power current voltage and resistance for series...
describe the relationships for up to three resistors, among power current voltage and resistance for series and parallel circuits?
A high-voltage transmission line with a resistance of 0.28 Ω/km carries a current of 1030 A....
A high-voltage transmission line with a resistance of 0.28 Ω/km carries a current of 1030 A. The line is at a potential of 670 kV at the power station and carries the current to a city located 155 km from the station. (a) What is the power loss due to resistance in the line? MW (b) What fraction of the transmitted power does this loss represent? %
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT