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
Question 1 Discuss the following with respect to .NET Technologies Web Applications Web Server Connections Question 2 Write a sample program using ASP.NET explain

What is Delegation? A delegate seems like a strongly type function pointer. Delegates can request the methods that they reference without making explicit calls to those methods

ASP Developer- We are needed to hire an ASP developer for some urgent work. He needs to add a new page to an already prepared site; the page is already completed in HTML. He jus

Mention the name of the directory where it is essential to locate the proxy file to use a Web service. The proxy file must be kept in the /bin directory. This directory is situ

Is spending in projects constant throughout the project? Generally in initial stage of projects (design and requirement phase) the cost is very less (as you require maximum bus

What is XPath? XPath stands for XML Path. It is a language used to access dissimilar parts of an XML document, such as elements and attributes.

What is the difference between Convert.toString and .toString() method To know the difference between Convert.toString and .toString() see the below code : int i =0; Mess


What is a Cloud Service? A cloud service is used to build cloud applications. This service gives the facility of using the cloud application without installing it on the comput

Define the ToolTip control. How can you associate it with other controls? The ToolTip control produces a small pop-up window with explanatory text for an element it is displaye