Finding the frequencies - c# program, DOT NET Programming

Finding the frequencies - C# Program:

Please let me know how to find Frequencies in C#.

Posted Date: 2/11/2013 7:32:50 AM | Location : United States

In this code we will try to understand how to find Frequencies in C#. Hope it will help you.


using System;

 class ElectricalCircuit


  public static void Main()


   float L,R,C,Frequency;

    // L = Inductance

   // R = Resistance

   // C = Capacitance

  //double Frequency;

 Console.WriteLine("  ****** Calculating frequencies for different values of Capacitance  ******");

Console.WriteLine(""); // Blank Line

Console.Write("Enter the Inductance (L) : ");

  L = float.Parse(Console.ReadLine());  

  Console.Write("Enter the Resistance (R) : ");

  R = float.Parse(Console.ReadLine());    

  Console.WriteLine(""); // Blank Line    

   for (C = 0.01F; C <= 0.1; C = C + 0.01F)


   Frequency = (float)(Math.Sqrt((1/L*C)-((R*R)/(4*C*C))));

   Console.WriteLine("For Capacitance " + C + ", The Frequency = " + Frequency);





Posted by diana | Posted Date: 2/11/2013 7:35:11 AM

Very useful Code. This coding helps me to get good grades in my examination. Thank You.

Posted by isbell | Posted Date: 2/11/2013 7:37:15 AM

Related Discussions:- Finding the frequencies - c# program, Assignment Help, Ask Question on Finding the frequencies - c# program, Get Answer, Expert's Help, Finding the frequencies - c# program Discussions

Write discussion on Finding the frequencies - c# program
Your posts are moderated
Related Questions
Project Description: We are seeking someone who can write a program in C# or C++. The idea is to prepare the program using a Cross Platform environment like Mono or Qt which

What are the different types of joins? 1) INNER JOIN: The Inner join shows matches only when they exist in both the tables.For example, in the SQL below there are two tabl

Can you explain how the ASP.NET authentication process works?   The ASP.NET does not run by itself, it runs inside the process of the IIS. So there are 2  authentication layer

Design the following interface and add code to the command buttons to achieve the following using case statement. I) find coursework to be calculated using the following formula:-0

What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.   In a interface class, all methods are abstract without execut

What is a delegate? A delegate is similar to a class that is used for storing the reference to a method and invoking that method at runtime, as needed. A delegate can hold the

We would like you to develop the subsequent requirements in one plug-in already in production. The plug-in was developed in Visual Studio 2010 .NET Framework 4 C# and synchronizes

Write the basic steps to execute a LINQ query. The following are the three basic steps to execute a LINQ query:     Obtain the data source (The data source can be either an

What is the difference between proc. sent BY VAL and By Ref? By val: changes will not be reflected back to the variable. By ref: changes will be reflected back to that varia

What is Dynamic Language Runtime (DLR)? DLR is a runtime environment that permits you to integrate dynamic languages with the Common Language Runtime (CLR) by adding a set of s