Skip to main content

Posts

Showing posts from May, 2021

Program to find given number is divisible by 2 or 3 and divisible 3 and 5

1.Program to find the given number is divisible by 2 or 3   using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace div_2or_3 { Class Program { static void main(string[] args) { int a; Console.WriteLine("Please enter any number:"); a = Convert.ToInt32(Console.ReadLine()); if (a % 2 == 0 || a% 3 == 0) { Console.WriteLine("The number is divisle by 2 or 3:"); } else { Console.WriteLine("The number is neither divisible by 2 or 3 . " ) ; } Console.ReadLine(); } } } OUTPUT: Please enter any number: 8 The number is divisible by 2 or 3. 2.Program to find the given number is divisible by 3 and 5: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace div_3and_5 { Class Program { static void main(string[] args) { int a;  Console.WriteLine("please enter any number."); a = Convert.ToInt32(Console.ReadLine()); if(a%3 ==

Program to find whether the number is even or odd

  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Even_Odd { Class Program { static void main(string[] args) int a; Console.WriteLine("Input any number"); a = Convert.Toint32(Console.ReadLine()); if(a % 2 = = 0) { Console.WriteLine("The given number is even that is : {0}",a); } else { Console.WriteLine("The given number is odd: {0}", a ); } Console.ReadLine(); } } } OUTPUT Input any number: 6 The given number is even that is: 6

WAP to convert currency into NRS into $

  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Currency_Convt { Class Program { static void main(string[] args) {  double NRS, D; Console.WriteLine("Input currency in NRS."); NRS = Convert.ToDouble(Console.ReadLine()); D= NRS/116; Console.WriteLine("The  converted currency is {0}", D); Console.ReadLine(); } } } Output: Input currency in NRS. 5000 The converted currency is: 43.1034

WAP to find out perimeter of Rectangle and square

  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Perimeter { Class Program { static void main(string[] args) { double lR, lS, bR; double PS, PR; Console.WriteLine("Input length of square and Rectangle."); lS = Convert.ToDouble(Console.ReadLine()); lR = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Input breadth of Rectangle"); bR = Convert.ToDouble(Console.ReadLine()); PS = 4*lS; PR = 2*(lR + BR); Console.WriteLine("The perimeter of a square is: {0}", PS ); Console.WriteLine("The perimeter of the rectagle is: {0}", PR); Console.ReadLine(); } } } OUTPUT: Input length of square and rectangle:  5 6 Input breadth of rectangle: 7 The perimeter of a square is: 20 The perimeter of the Rectangle is: 26

WAP to find out the area of circle

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Area_Circle { Class Program { static void main(string[] args) { double Pi = 3.14; double R, A; Console.WriteLine("Input radius of a circle."); R= Convert.ToInt32(Console.ReadLine()); A = (Pi*(R*R)); Console.WriteLine("The area of a circle is :{0}", A); Console.ReadLine(); } } } OutPut: Input radius of a circle. 5 The area of a circle is: 78.5

WAP to find out simple interest

  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Simple_Interest { Class Program { static void main(string[] args) { double P, T, R, I; Console.WriteLine("Input Principle, Rate of Interest, and time."); P= Convert.ToInt32(Console.ReadLine()); T= Convert.ToInt32(Console.ReadLine()); R= Convert.ToInt32(Console.ReadLine()); I= (P*T*R)/100; Console.WriteLine("The simple interest is :{0}", I); Console.ReadLine(); } } } OutPut: Input Principle, Rate of Interest, and time. 5000 5 1 The simple interest is: 250

WAP to convert Kilometer into meter and vice-versa

  1. Meter into Kilometer using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Convt_Kilometer { Class Program { static void main(string[] args) { double k , m; Console.WriteLine("Input data in meter."); m= Convert.ToInt32(Console.ReadLine()); k = m/ 1000; Console.WriteLine("The converted data is :{0}", k); Console.ReadLine(); } } } Output: Input data in meter: 5000 The converted data is: 5 2. Kilometer into meter using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Convt_meter { Class Program { static void main(string[] args) { double k, m; Console.WriteLine ("Input data in Kilometer."); k= Convert.ToInt32(Console.ReadLine()); m=k*1000; Console.WriteLine("Ther converted data is : {0}",m); Console.ReadLine(); } } } Output: Input data in kilometer. : 5 The converted data is: 5000

Signal Measurement

  This topic will include: Units of measurement Measurement instrument Characteristics of Instrument (Static and dynamic characteristics) Statistical Analysis (Arithmetic Mean, Average Deviation, Standard Deviation) Wheat Stone bridge AC bridge Wein's bridge Maxwell's bridge Hay bridge Units of measurement In measuring a quantity, we always compare it with some established reference standard. Such standard is called a unit of a quantity. Measurement implies a comparison with a standard value. To say that a rope is 30 m long is to say that is 30 times as long as an object whose length has been defined to be 1 meter. Fundamental Units Basic units of mass (M), Length (L), time (T) are known as fundamental units. These are also known as the primary fundamental unit.

Introduction to Instrumentation System

  Instrument: An instrument may be defined as a device for determining the magnitude of a quantity for a physical variable. Measurement and Measurement System: Instrumentation is the operation for determining the value of the quantity. A measurement or instrumentation system is a means used to carry out the measurement. It generally involves using an instrument as physical means of determining a quantity or variable. The purpose of the measurement system is to give the user numerical value corresponding to the variable be measured. For a variety of reasons, the numerical value may not actually be the true value of the variable. Due to various errors, the measured values will not be exactly equal to the true value of the quantity under measurement. Signal measurement