Vb Practicals

7
Design a program to find the capital of 5 Indian state using combo box and text box control. Use select case statement. Design an application to set background color of a text box containing the word “Higher Secondary School” using a set of three scrollbars Red, Green and Blue. The background color and foreground color should change when each scrollbar is moved. Use RGB() function to set colors. Design an alarm clock. Give provision to set alarm to beep at any particular time. Draw concentric circles with the centre of the form as its center in different colors. The circles should not exceed the border of the for. Use RND() and RGB() function to generate different colors. Write a program to accept 10 numbers as input in an array and display it in a list box. Find largest and smallest number in the list. Design a Visual Basic program for Simple Calculator

Transcript of Vb Practicals

Page 1: Vb Practicals

Design a program to find the capital of 5 Indian state using combo box and text box control. Use select case statement.

Design an application to set background color of a text box containing the word “Higher Secondary School” using a set of three scrollbars Red, Green and Blue. The background color and foreground color should change when each scrollbar is moved. Use RGB() function to set colors.

Design an alarm clock. Give provision to set alarm to beep at any particular time.

Draw concentric circles with the centre of the form as its center in different colors. The circles should not exceed the border of the for. Use RND() and RGB() function to generate different colors.

Write a program to accept 10 numbers as input in an array and display it in a list box. Find largest and smallest number in the list.

Design a Visual Basic program for Simple Calculator

Design a Visual Basic program to find the factorial of a number using procedure

Design a Visual Basic Program to find the simple and compound interest

Create two web pages one about Your School and second about address of your school. Make a link from school page to address page.

Page 2: Vb Practicals

Prepare an HTML document to display the following table

State BankOf India

Interest Rates

Less ThanRs.50,000

BetweenRs.50,000 &Rs. 1 Lakh

Above Rs. 1Lakh

Less Than 5Years

8 8.5 9

Between 5 &10 Years

8.5 9 9.5

Above 10Years

9 9.5 10

Write HTML code to create a simple web page as shown below

Department of TourismKerala State

Tourist Attractions in Kerala

● Thiruvananthapuram

1. Kovalam Beach2. Padmanabha Temple3. Museum

● Ernakulam

1. Bolghatty Palace2. Boating in Vembanad Lake

● Kozhikode

1. Beypore Port2. Kappad Beach

Write SQL Queries to

1. Create a table Student with fields

Page 3: Vb Practicals

Rollno Integer Primary keyName Character(25)Sub1 IntegerSub2 IntegerSub3 IntegerTotal Integer

2. Insert Data in the fields RollNo, Name, Sub1, Sub2 and Sub3 at least 10 records

3. Update field total with the sum of Sub1, Sub2, Sub3

4. Display Highest Mark in Sub3.

5. Display the names in ascending order

6. Display the name of student with highest total.

Write SQL Queries to

1. Create a table Student with fields

Rollno Integer Primary keyName Character(25)Batch Character(20)Total Integer

Batch have values COMMERCE, SCIENCE, HUMANITIES

2. Insert Data in the fields RollNo, Name, Batch and Total at least 10 records

3. Display list of students having mark > 450.

4. Display the number of students in each Batch.

5. Display the highest and lowest mark in SCIENCE batch

6. Display the name of student with highest total.Write SQL Queries to

1. Create a table Student with fields

Rollno Integer Primary keyName Character(25)Batch Character(20)

Page 4: Vb Practicals

Total Integer

Batch have values COMMERCE, SCIENCE, HUMANITIES

2. Insert Data in the fields RollNo, Name, Batch and Total at least 10 records

3. Display the name of all students in COMMERCE Batch.

4. Display the highest mark in the table.

5. Display the name of students in descending of total mark.

6. Display the details of student with Roll Number 3 to 7.

Write SQL Queries to

1. Create a table Employee with fields

Empno Integer Primary keyName Character(25)Designation Character(20)Department Character(25)Basicpay Number(8,2)DA Number(8,2)Gross Number(8,2)

2. Insert Data in the fields Empno, Name, Designation, Department and Basicpay at least 10 records

3. Update DA in the table as 60% of Basicpay.

4. Update Gross as the sum of Basicpay and DA.

5. Display the Empno and Name of employees with minimum gross

6. Display the details of employees whose basicpay > 10000

Write SQL Queries to

1. Create a table Employee with fields

Empno Integer Primary keyName Character(25)Designation Character(20)Department Character(25)Basicpay Number(8,2)

Page 5: Vb Practicals

DA Number(8,2)Gross Number(8,2)

2. Insert Data in the fields Empno, Name, Designation, Department and Basicpay at least 10 records

3. Update DA in the table as 60% of Basicpay.

4. Update Gross as the sum of Basicpay and DA.

5. Display the Average salary of Managers

6. Display the name of employee with maximum salary.

Write SQL Queries to

1. Create a table Employee with fields

Empno Integer Primary keyName Character(25)Designation Character(20)Department Character(25)Basicpay Number(8,2)DA Number(8,2)Gross Number(8,2)

2. Insert Data in the fields Empno, Name, Designation, Department and Basicpay at least 10 records

3. Update DA in the table as 60% of Basicpay.

4. Update Gross as the sum of Basicpay and DA.

5. Display the list of all Departments without repetition

6. Display the details employee with gross between 5000 and 10000Write SQL Queries to

1. Create a table Deposit with fields

Accno Integer Primary keyName Character(25)Branch Character(25)Amount Number(8,2) Not Null

Branches can be CALICUT, COCHIN or TRICHUR

2. Insert Data in the fields Accno, Name, Branch and Amount at least 10 records

Page 6: Vb Practicals

3. Display total deposit in each branch.

4. Display the details of deposit with maximum amount.

5. Display the Accno and Name of deposits in the CALICUT branch.

6. Display the details of customers who has deposited exactly Rs.10000.

Write SQL Queries to

1. Create a table Cutomer with fields

Accno Integer Primary keyName Character(25)Branch Character(25)Amount Number(8,2) Not Null

Branches can be CALICUT, COCHIN or TRICHUR

2. Insert Data in the fields Accno, Name, Branch and Amount at least 10 records

3. Display Accno and Name of customers.

4. Display all the Branches without repetition.

5. Display the Name of deposits in the descending order of deposit amount

6. Display the details of customers in a branch other than CALICUT.