0% found this document useful (0 votes)
9 views7 pages

Lab-Assignment-BCA657

The document outlines a series of lab assignments consisting of programming tasks in C, C#, and ASP.NET. Each assignment includes various programming challenges such as arithmetic operations, string manipulations, and database interactions. The assignments are structured into three distinct labs, each with a list of specific program names and requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views7 pages

Lab-Assignment-BCA657

The document outlines a series of lab assignments consisting of programming tasks in C, C#, and ASP.NET. Each assignment includes various programming challenges such as arithmetic operations, string manipulations, and database interactions. The assignments are structured into three distinct labs, each with a list of specific program names and requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Lab Assignment No: 1

S.NO PROGRAM NAME PAGE DATE SIGN REMARK


NO
1 WCP to display a message “HELLO INDIA” on console.

2 WCP to perform arithmetic operation.

3 WCP to find weather a year is leap or not.

4 WCP to find the grades of a student according to their scores.

5 WCP to find factorial using for, while, do…While loops.

6 WCP to print table from 1-10.

7 WCP to perform various string operations.

8 WCP to identify choice of user using select…Case.

9 WCP to declare & initialize various types of variables.

10 WCP to find the largest number among three numbers.

11 WCP to find maximum element in array a of size n.

12 WCP to find minimum element in array a of size n.

13 WCP to print the Fibonacci Series using Recursion for N Numbers.

14 Write a program to accept the numbers M and N from the user


and print the smallest required number whose sum of all its digits
is equal to N. Also, print the total number of digits present in the
required number. The program should check for the validity of the
inputs and display an appropriate message for invalid input.

Given two positive numbers M and N, such that M is between 100


and 10000 and N is less than 100. Find the smallest integer that is
greater than M and whose digits add up to N. For example, if M =
100 and N = 11, then the smallest integer greater than 100 whose
digits add up to 11 is 119.

Example 1 INPUT: M = 100 N = 11 OUTPUT: The required number =


119 Total number of digits = 3
Example 2 INPUT : M = 1500 N = 25 OUTPUT : The required
number = 1699 Total number of digits = 4

15 Write a Program in C# to input a number and check whether it is a


Disarium Number or not. Note: A number will be called DISARIUM
if sum of its digits powered with their respective position is equal
to the original number.
For example 135 is a DISARIUM (Workings 11 +32 +53 = 135, some
other DISARIUM are 89, 175, 518 etc)

16 Write a Program in C# to input a number and check whether it is


an Automorphic Number or not. Note: An automorphic number is
a number which is present in the last digit(s) of its square.

Example: 25 is an automorphic number as its square is 625 and 25


is present as the last digits.

17 A smith number is a composite number, the sum of whose digits is


the sum of the digits of its prime factors obtained as a result of
prime factorization (excluding 1). The first few such numbers are 4,
22, 27, 58, 85, 94, 121.....

Example 1. 666 Prime factors are 2, 3, 3 and 37 Sum of the digits


are (6+6+6) = 18 Sum of the digits of the factors 2+3+3+(3+7) = 18
Sample data: Input 94 Output SMITH Number Input 102 Output
NOT SMITH Number

18 Write a C# program to input a number and check whether it is a


NEON number or not.

Note- A number is said to be Neon, if sum of all the digits of the


square of the number is equal to the number itself. For example: 9
is a Neon Number. Square of 9=81 Sum of Digits of square=8 + 1=9

19 Write a C# program for Emrip number. Example: 13 is Emrip


number since 13 and 31 are both prime number, means that
forward and backward of a number will be prime number.

20 A bank intends to design a program to display the denomination of


an input amount, upto 5 digits. The available denominations with
the bank are of rupees 1000,500, 100, 50, 20, 10, 5, 2 and 1. Design
a program to accept the amount from the user and display the
break-up in descending order of denominations. (i,e preference
should be given to the highest denomination available) along with
the total number of notes. [Note: only the denomination used
should be displayed]. Example 1: INPUT: 14836 OUTPUT: ONE
FOUR EIGHT THREE SIX DENOMINATION:

1000 X 14 =14000

500 X 1 =500

100 X 3 =300

50 X 1 =50
5 X 1 =5

1 X 1 =1 , EXAMPLE 2: INPUT: 235001 OUTPUT: INVALID AMOUNT


Lab Assignment No: 2

S.NO PROGRAM NAME PAGE DATE SIGN REMARK


NO
1.. WWP to find the area of a circle by using required widows
controls.

2. WWP to calculate sum if the digit of number enter by the user.

3. WWP to find reverse of a number entered by the user.

4. WWP to enter any number and check whether the number is


perfect or not.

5. WWP to copy text of one textbox into another.

6. WWP to align text left, right & center in textbox.

7. WWP to clear all textboxes by using for each loop.

8. WWP to implement message box (YES/NO type) on button click


event.

9. WWP to show data in Datagrid using SqlServer2008.

10. WWP to implement login form.

11. WWP to copy list item from one to another.

12. WWP to find which checkbox is checked.

13. WWP to find which radio button is selected in a group.

14. WWP to load image in picture box.

15. WWP to show data in combo box using SqlServer2008.

16. WWP to implement calculator.

17. WWP to validate textbox for empty value.

18. WWP to validate textbox for integer value.

19. WWP to insert record in database of employees having fields


namely empid, empname and empsalary.

20. WWP to bind the values in dropdown list through coding.


Lab Assignment No: 3

S.NO PROGRAM NAME PAGE DATE SIGN REMARK


NO
1 Create ASP.Net web applications to implement
calculator in ASP.net with C#.
2 Create ASP.Net web applications to implement login
form in ASP.net which field name are:-Username,
Password.
3 Create ASP.Net web applications to implement
Registration form in ASP.net which field name are:-RegID,
UserName, Address, State, City, PhoneNo, EmailId, PinNo.
4 Create ASP.Net web applications to implement
combobox in ASP.net and fetch the State or City data from
the database.
5 Create a ASP.Net web applications application in which
contain three field:
 Student Id(Perform Auto Increment and initial start
with 10001)
 Student Name
 Student Course
Use New Button for Auto increment in Id and save
button for save the record with the disconnected
architecture.
6 Create ASP.Net web applications which contain a data
grid, when form will be load then data grid fill with
predefined database with disconnected architecture.
7 Create ASP.Net web application which contains a data
grid, when form load this data grid fill with predefined
database in sorted manner and contain two textbox one
for Student Name and another for Student id to perform
pattern search operation as per textbox value in the
Data Grid with disconnected architecture.
8 Create an application which contains fallowing fields:
 Employee ID (Created By User)
 Employee Name
 Employee Date Of Birth
 Employee City
 Employee Mobile No
To perform the following operations
 Add Button for New Record
 Save Button for Save new Record
 Delete Button for Delete a record as per
click on the Grid and fill all the Text
boxes
 Update Button for Update a Record as
per click on the Grid and fill all the Text
Boxes
 Exit for exit from the application

9 Create ASP.Net web applications to fetch student


Name in a combobox from a Student table in connected
mode. (Take Table Fields as Rollno, StudentName, Course,
Contactno, Address) in ASP.Net.
10 Create ASP.Net web applications to fetch student
Record in a DataGridview from a Student table in
connected mode in ASP.Net.

11 Create ASP.Net web applications to fetch, insert,


delete and update student Record from Student table in
connected mode and also use try…catch… statement in
ASP.Net.

12 Create ASP.Net web applications to fetch student


Record in a textboxes by clicking the row of DataGridview
and DataGridview receives data from student table in
connected mode in ASP.Net.

13 Create ASP.Net web applications to fetch student


Record in a textboxes from a Student table and use
previous and next button to navigate records in ASP.Net.

14 Create ASP.Net web applications to fetch student


Record in a Gridview from a Student table by using the
DataSet Class in disconnected mode in ASP.Net.

15 Create ASP.Net web applications to fetch student


Record in a Gridview from a Student table by using the
DataTable Class in disconnected mode in ASP.Net.

16 Create ASP.Net web applications to create a Login


Page and take Login table having fields as Username,
Password in ASP.Net.

17 Create ASP.Net web applications to create master


page having menus as Home, About Us, and Contact Us.
Products in ASP.Net.

18 Create two web pages and display data of one web page on
another web page using statement management technique
namely Application in ASP.Net.

19 Create ASP.Net web applications to use the


RequiredFieldValidator in ASP.Net.

20 Create ASP.Net web applications to use the


CompareValidator in ASP.Net

You might also like