By 26/03/2014 8 Comments

Exercise Program # 02 Operators in C++

Q: Write 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 the power dissipation is: P=I^2*R?


#include <iostream.h>  
#include <conio.h>

void main()
     float V, I, R, P;

     cout<<"Enter the voltage across the resistor: "; cin>>V;
     cout<<"Enter the current through the resistor: "; cin>>I;
     cout<<"The power dissipation is "<<P<<" watts";


Posted in: C++ Exercises

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .