Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Develop a program that will solve for the power dissipation of a resistor when t

ID: 3771252 • Letter: D

Question

Develop a program that will solve for the power dissipation of a resistor when the voltage across the resistor and the current in the resistor are known. The relationship for resistor power dissipation is the following equation P = I * E Where : P = Power of dissipated in watts. I = Resistor current in amps E = Resistor voltage in volts Develop a program that will solve for the power dissipation of a resistor when the voltage across the resistor and the current in the resistor are known. The relationship for resistor power dissipation is the following equation P = I * E Where : P = Power of dissipated in watts. I = Resistor current in amps E = Resistor voltage in volts Develop a program that will solve for the power dissipation of a resistor when the voltage across the resistor and the current in the resistor are known. The relationship for resistor power dissipation is the following equation P = I * E Where : P = Power of dissipated in watts. I = Resistor current in amps E = Resistor voltage in volts

Explanation / Answer

This below script will solve the power disspaion of register
using given formaulae .i.e P = I * E;
1. Writtn function for power disspaion
2. This function will calculate the power disspaion
3. These values are passed from main function.
4. this power disspaion will print the result.

#include<stdio.h>
void power_disspation(double i, double e)
{
   double p =0.0;
   p =i * e:
   printf("Power disspaion is %lf :", p);
  
}
int main()
{
   double p = 0.0, e = 0.0;
   p = 3.2;
   e = 6.3;
   power_disspation(p,e);
   return 1;
}