given the value for resistors and voltage, calculate Rtotal, Itotal, I1 and I2...
here is a simple C++ coding for series-parellel resistance network:
#include <iostream.h>
void main()
{
double V, R1, R2, R3, R4, Rt, It, I1, I2, I3, I4;
cout<<"Enter the value of V in Volts: ";
cin>>V;
cout<<"\nEnter the value of R1 in Ohms: ";
cin>>R1;
cout<<"\nEnter the value of R2 in Ohms: ";
cin>>R2;
cout<<"\nEnter the value of R3 in Ohms: ";
cin>>R3;
cout<<"\nEnter the value of R4 in Ohms: ";
cin>>R4;
Rt = (((R1+R3)*(R2+R4))/((R1+R3)+(R2+R4)));
It = V/Rt;
I1 = I3;
I2 = I4;
I1 = (V/(R1+R3));
I2 = (V/(R2+R4));
cout<<"\n\nThe total resistance is: "<<Rt<<" Ohms";
cout<<"\n\nThe total current is: "<<It<<" Amps";
cout<<"\n\nThe value for I1 is: "<<I1<<" Amps";
cout<<"\n\nThe value for I2 is: "<<I2<<" Amps"<<endl;
}
\\...kami dedikasikan blog ini untuk aktiviti jalan - jalan dan makan - makan...serta aktiviti menarik yang lain...//
Sunday, January 29, 2012
Friday, January 27, 2012
Another grouper
new day...
same place...
similar bait...
same species...
another grouper caught today but the size is so tiny...
suffice just for a catch record...
same place...
similar bait...
same species...
another grouper caught today but the size is so tiny...
suffice just for a catch record...
Thursday, January 26, 2012
Mangrove Jack & Grouper
finally i managed to fish two types of popular fishes...
mangrove jack and grouper...
the fishing spot is just a few minutes from Kuala Terengganu city...
Kuala Ibai river mouth...
althoughthe fishes not so big but it's a starter...
hope gonna catch more of these fishes...
mangrove jack and grouper...
the fishing spot is just a few minutes from Kuala Terengganu city...
Kuala Ibai river mouth...
althoughthe fishes not so big but it's a starter...
hope gonna catch more of these fishes...
Thursday, January 19, 2012
busy weeks
huh....
it has been a very tiring and busy weeks...
C++, PIC,PLC, CLO n PLO analysis, Exam data....
thus my updates have been delayed so many times...
this is my second update for this month and year...
hope there will be after this...
with a few tasks have been completed and some are in progress...
it has been a very tiring and busy weeks...
C++, PIC,PLC, CLO n PLO analysis, Exam data....
thus my updates have been delayed so many times...
this is my second update for this month and year...
hope there will be after this...
with a few tasks have been completed and some are in progress...
Sunday, January 1, 2012
new year tea @ tutti fruti Indera Mahkota
happy new year...
i started with the 2012 new year with a bit of fever...
but that didn't prevent me and my wife to had some makan2...
we had a cup of marvellous delicious frozen yogurt @ tutti fruti...
hehehe...
fortunately, the tutti fruti store's just a few minutes from our home...
tutti fruti indera mahkota, kuantan, pahang...
we chose the red velvet and green apple flavor...
plus some toppings...
a great indulgence after shopping some groceries @ pasar tani...
plus, they also giving some discount...
depends on the branches...
for the tutti fruti indera mahkota...
we got...
20% off for the new year
and...
10% off for this upcoming chinese new year...
after just a few minutes
the offer
Subscribe to:
Posts (Atom)