Вы находитесь на странице: 1из 3

Jagannath International Management School

Vasant Kunj, New Delhi

Computer Applications-I for BBA

List of Practicals

Semester: III Paper Code: BBA 207

1. Start a new project in VB. Perform the following steps:


a) Place two command buttons and one textbox in the
form.
b) Change the name of command buttons to
Cmddisplay and
Cmdexit and of textbox to txt1
c) Change the caption of Cmddisplay to display
message
d) Change the caption of Cmdexit to Exit.
e) Write code for all these controls so that it can
perform the following actions:
i) On starting the application, textbox txt1 should display a
message “Welcome to Visual Basic”.(Use form load event)
ii) On clicking Cmddisplay button textbox should display “ It’s
easy to work in VB”
iii) When Cmdexit is clicked, the application ends.

2. Write a VB application with a form which has three command buttons


and one textbox control. The 3 command buttons should have following
functionality.
a. Command Button 1: Display “Hello” in textbox when
button is clicked.
b. Command Button 2: When clicked the textbox should be
cleared.
c. Command Button 3: When clicked the application should
be closed.

3. Design a VB application with a form (Caption – Calculator)


having 3 labels, 3 textboxes and 5 buttons named Add, Subtract, Divide,
Multiply and Exit. Two numbers should be entered in two textboxes and
the result should be shown in third textbox as per the command button
pressed.
4. Design an interface using frames and option buttons to allow a user to
choose from a list of languages ( VB, VC++, JAVA,VB.Net) and a list of
browsers ( IE, Netscape, Firefox, Opera). Display the items selected in a
msgbox.

5.Create an application that offers various food items ( Pizza ,dosa,


Chowmein) to select from a mode of payment (cash, credit). It then
displays the total amount payable.

6. Write a VB application that has two List Boxes and one command
button with caption “Add”. Add 5 items in ListBox1, when users select an
item and click on the Add button then those items should be added in
second ListBox2.

7.Design a VB application to display an application form with the following


details:
Name - Textbox
Gender – Option button
Qualification – Comboobx
Post Applied for –Combobox
Hobbies – ( Music, Painting, Reading, Writing) –
Checkbox
It should include a command button “ Submit” which when clicked
displays all the details entered by the user in a msgbox.

8. Create a form with two main menus File and Edit. The File menu should
have commands like open, New, Save and Exit. The Edit menu should
have commands like cut, copy, paste, find. Use access keys for Main
menu File and Edit. Create short cut keys for commands like Exit, Cut,
Copy and Paste.

9. Use a timer control to display a blinking text message – “WELCOME”.

10.Write a program to determine whether a number is even or odd. Use


the Input box function to receive the number from user.

11.Write a program to display the greatest of three numbers.

12.Write a program to read a character and determine whether it is a


lower case letter, an upper case letter or a digit.

13.Write a program to read a character in lower case and display it in


upper case.
14.Design an application to calculate the grade of students, use the
following conditions.
Grade Condition
Fail Percentage < 50%
Pass Percentage > 50%
First Division Percentage is equal and greater to 60% &
less than 75%
Distinction Percentage is equal and greater than 75%.

Use the Input box to capture the percentage of students from user.

15.Write a program in VB to generate first ten odd numbers.

16.Write a function in VB to calculate the factorial of a number entered by


user using an Input Box.

17.Write a program to display the first to terms of Fibonacci series.

18.Write a program in VB to generate sum and average of five numbers


entered by user (use array)

19. Write a program to accept 10 numbers from user and store them in
array, then display the sorted array in ascending and descending order.

20.Write a program to copy the contents of one array to other array, and
then display both arrays.

21. Design a simple calculator using a control array.

22. Write a program to show the difference between call by value and call
by reference.

23. Create an application with two forms, with one command button on
each form to show the other form and hide the current form.

Вам также может понравиться