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
The purpose of this project is to ?nalize your TODO application.  For this project we are aiming to achieve the following: Objectives: Integrate a fully functional mobile

What are ASP.NET session and compare it with classic ASP session The ASP.NET session caches per user session state. It basically uses "HttpSessionState" class. The limitatio

Explain different software development life cycles. The System Development Life Cycle (SDLC) is the overall process of developing information systems through multi stage proces

What is the difference between Stored Procedure (SP) and User Defined Function (UDF)? Some of major differences between a stored procedure and user defined are as follows:-

Compute Average of 3 numbers - C# Program I didn't know the exact code for computing average of integer number. Can anybody suggest me the correct way for find out the average

Project Description: I am having a table available in excel format and features the subsequent: - It has about 170000 rows - Some text is longer than 255 in length. - S

What is UML? The Unified Modeling Language (UML) is a graphical language for documenting, specifying, visualizing,  constructing, and  the artifacts of a software-intensive sys

I need a Web Application UI Modernization - Preliminary Technology Assessment We are seeking to overhaul a 10-year old enterprise application, CRM-related as well as web-based t

How can you use Hidden frames to cache client data? This technique is implemented by developing a Hidden frame in page which will have your data to be cached. T cols="100

This is a Customer Management project. Customer data is offered in a text file. The program may load this text data into its database columns. The data mapping is user definable. U