Class Assignment 3 ic Up iCl Write a computer program or use a spreadsheet progr
ID: 2078553 • Letter: C
Question
Class Assignment 3 ic Up iCl Write a computer program or use a spreadsheet program to plot Irms for an LRC circuit with a sinusoidal voltage source with Vrms-0.100 V. For 50 H and C F, plot the lrms graph for (a) R = 0.10 and (b) R = 1.0 from 0.1 ° to = 3.0 0.uo is the natural frequency. Here is my plot made with excel Analysis of LCR circuit 1.20E+00 1.00E+00 8.00E-01 6.00E-01 R=0.1 -R=1.0 4.00E-01 2.00E-01 0.00E+00 0.00E+00 1.00E+04 2.00E+04 3.00E+04 4.00E+04 5.00E+04 6.00E+04 7.00E+04 Driving angular frquency (rad s)Explanation / Answer
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <iomanip>
#include <stdlib.h>
using namespace std;
void main()
{
int R,XL,XC,Z,L =50,C=50, w,P,V=0.01,I;
cout<< "Enter the resistance :" ;
cin>> R ;
cout<< "Enter the angular frequency : " ;
cin>> w ;
XL = wL ;
XC = 1/(c*w) ;
Z = [(XL-XC)2+R2]1/2 ;
P = tan-1[(XL-XC)/R] ;
I = V/ Z;
cout<< "RMS current ="<<I;
getch();
}