0% found this document useful (0 votes)
40 views

cSharpPractical List2022

The document provides a list of 25 C# programming tasks and 2 ADO.NET tasks. Some of the C# tasks include writing a program to print "hello", using for loops to display an asterisk pattern, performing Celsius to Fahrenheit conversions, making a simple calculator using switch case, and showing different types of laptops with details using classes. The ADO.NET tasks involve creating a registration form to save, edit, delete and search database values using connected and disconnected database architectures.

Uploaded by

Santa claus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

cSharpPractical List2022

The document provides a list of 25 C# programming tasks and 2 ADO.NET tasks. Some of the C# tasks include writing a program to print "hello", using for loops to display an asterisk pattern, performing Celsius to Fahrenheit conversions, making a simple calculator using switch case, and showing different types of laptops with details using classes. The ADO.NET tasks involve creating a registration form to save, edit, delete and search database values using connected and disconnected database architectures.

Uploaded by

Santa claus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Department of Computer Applications

C Sharp .net Practical List 2022

1.Write a program to print “hello”.

2.Using for loop

Write C# code to display the asterisk pattern as


shown below:

**** A
**** BC
**** DEF
**** GHIJ

3. Write a C# code to Perform Celsius to Fahrenheit Conversion and Fahrenheit to Celsius


conversion.(Using type cast)(  F = (°C × 9/5) + 32, C = (°F − 32) x 5/9)

4.Write a program to make sum of two number.

5.WAp to multiply two floating numbers.


6. Write C# Program to print day name of week. (using if …else..)

7. Write C# Program to check whether a character is alphabet, digit or special character.(use


type conversion)

8. Calculating power of a number using while loop.

9.WAP to reverse a number.

10.Make a simple calculator using switch case.

11.Write a program to convert digit to word using array .


12.WAP to demonstrate jagged array.

13. Write C# program to count even and odd elements in an array.


14. Write a C# program to create a function to check whether a number is prime or not
15. Write a C# program to create a recursive function to find the factorial of a given
number
16.WAP to add two numbers (use method).

17. Find square root of number use : Math.Sqrt() Method (built in method)
18.Find a max number using method
19.Create class employee and create two object of that class.and also assign them department
and call it by object.

20.Create one class user and use get(0,set() method to display their age name

21.Using operator overloading do sum of two integer.

22.Using method overloading do sum of two number.


23.WAP which contains a class Laptop which inherits be base class LaptopBase. LaptopBase
has several const values that are used in the main method.
This program is showing different types of a laptop with details. All the details are constant
and cannot be changed.
24.Illustrate the example of constructor shown in class.
25.Show example of polymorphism( method overriding).
26. Write a program which shows overflow exception..

ADO.NET

1 ADO.NET
A Write a program to create registration form and
save/ edit /delete /search values from database
using connected database architecture.
Write a program to create registration form and
save/ edit /delete /search values from database
using disconnected database architecture.
2 Windows Form
A Create a windows forms application which
displays your name entered in a TextBox
Control as shown below:

B Make simple windows form which shows


ADD,Delete,Search ,edit operations.

You might also like