CSharp

CSharp Programmes

BANK DEPOSIT USING DYNAMIC INITIALISATION OF OBJECT IN C#

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university // WAP FOR COMMERCIAL BANK FOR LONG TERM DEPOSIT SCHEME USING DYNAMIC INITIALISATION OF OBJECT // #include<iostream.h> #include<conio.h> #include<stdio.h> class fixed_deposit { long int p_amt; //principal amount int years; //period of investment float rate; //interest rate float R_value; //return value of amount public: fixed_deposit(){ } …

BANK DEPOSIT USING DYNAMIC INITIALISATION OF OBJECT IN C# Read More »

REMOVE DUPLICATES FROM THE ARRAY IN C#

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //WAP TO REMOVE DUPLICATES FROM THE ARRAY using System; using System.Collections.Generic; using System.Text; namespace dulpicates { class Program { static void Main(string[] args) { int n; Console.WriteLine(“Enter the range:=>”); n = int.Parse(Console.ReadLine()); int[] a = new int[50]; Console.WriteLine(“Enter the array:=>”); for (int i = 0; …

REMOVE DUPLICATES FROM THE ARRAY IN C# Read More »

constructor overloading method in c#

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //constructor overloading using System; using System.Collections.Generic; using System.Text; namespace over { class con { void check(int d) { string[] n ={“one”,“two”,“three”,“four”,“five”,“six”,“seven”,“eight”,“nine”}; Console.Write(n[d-1]); } //123= one two three con(int a) { int[] rem=new int[10]; int i=0; while(a!=0) { i++; rem[i] = a % 10; a = …

constructor overloading method in c# Read More »

Number conversion using constructor overloading in c#

SOURCE CODE : //programed by Paras Wadher MCA Nagpur university //program for number conversion using constructor overloading. using System; using System.Collections.Generic; using System.Text; namespace con_over { class overload { overload(int n) { cal(2,n); } overload(int n,int a) { cal(8, n); } overload(int n,int a, int b) { cal(16,n); } void cal(int ch,int n) { int[] …

Number conversion using constructor overloading in c# Read More »