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
Information Retrieval from Multi-Agent System with Data Mining in Cloud Computing Project Description: I have planned one research model on "Information Retrieval through Mul

Project Description: Digital invy - inventory management Main Features User friendly windows based software Multi Branch Multi company facility Multi user Integra

What is Object Oriented Programming? This is a problem solving process to develop software systems. This is a technique to think real world in terms of objects. The Object maps

Task on data mining Project Description: Task on Opinion Mining, Sentiment Analysis Skills required are C# Programming, Software Architecture, Data Mining

How to implement DTC in .NET DTC is implemented using the COM+. Following are some of the steps to implement COM + in .NET:- 1) The "EnterpriseService" namespace has all

What is serialization, how it works in .NET? Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage. S

This is a whole time contractual role working for a sports advisory service. We are data insights consultancy specializing in sports. We consult to a number of sporting organizatio

Develop a scrapebox software Project Description: I need a software name scrapebox Skills required are .NET, C Programming, Java, C# Programming, Software Architecture

How many types of validation controls are provided by ASP.NET   The six main types of validation controls are as follows:- 1) Required Field Validator: This validator che

What is a LinqDataSource control? The LinqDataSource control enables you to use LINQ. In an ASP.NET Web page by setting the properties in the markup text. You can use the contr