In: Electrical Engineering
write a program in c++ to design a tuning circuit for a given frequency bond using a variable capacity to determine the value of an inductance required for a given frequency range
Program in C++
#include
<iostream.h>
//Including library
#include <bits/stdc++.h>
using namespace std;
int main()
{
int freq;
float res, ind;
cout<<"enter given
frequency"<<endl;
cin>>freq;
// Given frequency
cout<<"Enter capacity in
ohms"<<endl;
cin>>res;
// Given Capacity
ind = (res/(2*pi*freq));
cout<<"Required inductance in
Henry"<<endl;
cin>>ind;
return 0;
}