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.

Program:

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);

  }  

  Console.ReadLine();

 }

}

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: General information for the business: Call Accounting and Billing Kind of development: New program from scratch Description of each module: Call Accou

Ask queyuyuystion #Minimum 100 words accepted#

13579 3579 579 79 9 How to the logic in code. pls give me Ans.

What are tuples? Tuple is a fixed-size collection that can have elements of either similar or different data types. Same to arrays, a user must have to specify the size of a tu

Project Description: I want very simple app in C# in visual studio Windows forms app Very simple database management app - three buttons - search , delete, add records and

EMR ONC MU2 CERTIFICATION Project Description: We are looking for someone with experience in EMR MU2 certification per ONC needs. If you have experience and participate in

Project Description: customise samba pos. Just remove samba pos logo and rebrand it. The title in the frame needs to be changed as well as the splash screen at the beginning.

How can we implement singleton pattern in .NET ? The Singleton pattern basically focuses on having one and only one instance of the object running. Lets take an e.g. a windows

i am working on an project and my client needs it in 2 days.project is ready but don''t know how to make setup project including local sql database(.mdf) included in setup..

How to use datagrid view