Sunteți pe pagina 1din 9

1) Create a project to accept a character from the user.

Provide a button
CHECK VOWEL, which will check if the character is a vowel and display in a message box Character entered is a vowel else Character entered is a consonant.

2 )Create a project that allows the user to enter (in textboxes) three
integers. On click of command button Greatest the greatest of three integers must be displayed in a message box. On clicking the command button Least the least of three integers must be displayed in a message box.

3 )Create a project to accept a number from the user. Provide a number


FIND PRIMEwhich will check if the number is a prime number and display in a message box Number entered is a Prime Number else Number entered is not a Prime Number

4) Create a project that allows the user to enter a number in the textbox
named getnum. Check whether the number in the textbox getnum is palindrome or not. Print the message accordingly in the label control lbldisplay when the user click on the command button check.

5) Create a project that allows the user to enter a number in the textbox
named getnum. Check whether the number in the textbox getnum is palindrome or not. Print the message accordingly in the label control lbldisplay when the user click on the command button check.

6) Create a project that will read three numbers from user(use InputBox
function). Include command command buttons to Print addition of these numbers

Print average of these numbers Display the largest of these numbers Display the number if it is repeated

7) Create a project that will display three option buttons with caption
Normal, Minimize and Maximize and a command button Exit. When the Normal option button is selected, the form size is Normal. When the Minimized option button is selected, the form size is minimized. When the Maximized option button is selected, the form size is Maximized. Also write appropriate code for Exit command button.

8) Create a project that will maintain a list of Ice-creame flavors. Use


combo box to hold flavors and use command buttons to Add flavor Remove flavor Clear list Display flavor count Exit Necessary validations should be done while adding or deleting flavor.

9) A list of different ice-cream flavors has to be maintained.


Create a project to add a new ice-cream flavors to the list of flavors as well as delete a flavor from the list. The user must click the ADD command button to add an item in the list and Delete command button to delete the item from the list box. Also there is a command button Count that will display total no of items in the list and a command button Clear to clear the content of the list. Necessary validations should be done while adding or deleting an item.

10) Create a project which accept a main string in a text box and a
substring in another textbox. Find out how many times substring occurs in the main string. Also show its position.

8) Create a project to accept name and age (using text boxes) and gender
(using (option buttons) of a person. Provide a button CHECK ELIGIBILITY. If gender is male and age is greater than or equal to 21, or if gender is female and age is greater than or equal to 18 then display the name of the person concatenated with the string Eligible for Marriage. If the conditions do not satisfy then display the name of the person concatenated with the string Not Eligible for Marriage.

9) Create a project that will read three numbers from user(use InputBox
function). Include command command buttons to Print addition of these numbers Print average of these numbers Display the largest of these numbers Display the number if it is repeated

10) Create a project that will display three option buttons with caption
Normal, Minimize and Maximize and a command button Exit. When the Normal option button is selected, the form size is Normal. When the Minimized option button is selected, the form size is minimized. When the Maximized option button is selected, the form size is Maximized. Also write appropriate code for Exit command button.

11) Create a project which consists of two radio buttons having name
Image 1 and Image 2. On selection of one of the option buttons the respective image should be displayed in a image control.

12) Create a project that contains two sets of option buttons one for
color and other for font. There are three label controls on the form for displaying name, city, phone number. The values (name, city and phone number) are accepted from user. The selection of respective option button will change forecolor and font of the text displayed in user selected label control.

13) Create a project that will maintain a list of Ice-creame flavors. Use
combo box to hold flavors and use command buttons to Add flavor Remove flavor Clear list Display flavor count Exit Necessary validations should be done while adding or deleting flavor.

14) What is meant by validation? Create an application to check entered


details in textbox like name, email-Id, Ph No and age of students studying in B.Sc class. 15) Create an application to handle daily transaction in library. Store information like roll no, book no, class date and status showing earlier book issued. At the end of the day it should be possible to take print out of class wise summary indicating number of books issued by students.

16) Create a project, which asks user to change the font name, size,
color and properties like Bold, Italic of the text available in the textbox. Use common dialog box control.

17) Create an application to calculate total amount on purchase of


chocolate by customer. Chocolates are available in two packs of different make. Following are the rates of chocolate.

Packs/Make Cadbury Nestely Ferrreo Rocher Kitkat 20 gm 10 Rs 8 Rs. 20 Rs 7 Rs. 50 gm 25 Rs 16 Rs. 50 Rs 13 Rs. Use option button to select pack and make of chocolate.

18) Create a project that calculates the total of fat, carbohydrates and
protein in calories. Allow user to enter (in text boxes) the grams of fats, carbohydrates and protein. Each gram of fat is nine calories, where as gram of protein and carbohydrates is four calories. Display the total calories for the current food item in a label. Use other two labels to display an accumulated sum of the calories and count of the items entered. Form: The form should have three textboxes for the user to enter the grams of each category. Include labels next to each text box indicating what the user is to enter. Include a command button to Calculate, to Clear the text boxes and to Exit. Code: Write the code for each command button.

19) Create a project that calculates the postal charges if the handling
charges are as follows: 1. Rs. 30/- per kg up to 50 kg 2. Rs. 25/- per kg for 51 to 100 kg 3. Rs. 15/- per kg for 101 to 1000 kg 4. Rs. 10/- per kg for weight above 1000kg. Form: use text boxes with proper label to accept a package identification code and weight of package. Include a command button to calculate the postal charges and display it in a message box.

20) Create a project that allows the user to enter (in textboxes) three
integers. On click of command button Greatest the greatest of three integers must be displayed in a message box. On clicking the command

button Least the least of three integers must be displayed in a message box.

21) A list of different ice-cream flavors has to be maintained.


Create a project to add a new ice-cream flavors to the list of flavors as well as delete a flavor from the list. The user must click the ADD command button to add an item in the list and Delete command button to delete the item from the list box. Also there is a command button Count that will display total no of items in the list and a command button Clear to clear the content of the list. Necessary validations should be done while adding or deleting an item.

22) Southern Railways has introduced some more trains to mark the
50th anniversary of independence. Create a project to add the names of new trains to the list of trains as well as delete the trains that will be no longer running. The user must click the ADD command button to add an item in the list and DELETE command button to delete the item from the list box. Items to be added to the list are entered in the text box. For deleting the items the item is selected from the list.

23) Create a project in a game format in which a user selects a name of


a particular country and accordingly related currency of that country. If the relation is correct, display a message to the user You are right else Select proper currency. Country Currency India Rupee Japan Yen USA Dollar

24) Create a project to demonstrate following properties of text box


PasswordChar Enabled Visible Text

25 )Create an application which will ask the user to input his name and
a message, display the two items concatenated in a label, and change the format of the label using option buttons and check boxes for selection, the user can make the label bold,underlined or italic and change its color. Include command buttons to display the message in the label, clear the text boxes and label, print the form and exit.

26) Create a project Rn R that contains a dropdown combo box for the
coffee flavors and a list box of the syrup flavors. The controls should have labels above them containing the words coffee and syrup. Enter the initial values for the syrup flavors and coffee flavors when the form is loaded. The user will be able to add more coffee flavors to the list at run time. Include one menu item to print all the flavors and another to print only selected item from the list. These print commands belong to the File menu. Include Edit menu with commands to Add coffee flavor, remove coffee flavor, clear coffee list and display coffee count.

27) Write a project to maintain the customer table (customerID Text


Primary Key, CompanyName Text, ContactName Text, Address Text, City Text, Region Text, PostalCode Text, Country Text, Phone Text, Fax Text) Allow Adds and deletes to the database. Include all navigation buttons. On an Add, disable the navigation and delete buttons so that the only options are save or cancel.

28) Sequential files:


Create an application which will enter the employee details such as eno, ename, eaddr, eph, ebasic-salary in corresponding text boxes. Include a command button Save which will save all these details in sequential file Emp.Dat. Include a command button Retrieve which will retrieve all records from file and display on the form. Clear button to clear the text boxes.

29 )Create a project to maintain the publisher id, name, city and


telephone in a sequential file. Allow the auer to ADD details using a button. Use a list box to display the name of the publisher to the user. Provide a SHOW button to display all the details in the text boxes after selecting the name from the list.

30) Write a VB code that will store contents of a list box in a sequential
file data.txt when the user click on the command button Save. When the user click on command button Retrieve, the contents of the file should be copied into the list box. The user must be able to add and delete the item from the list box using command buttons Add and Delete respectively.

31) Create a project to declare a class that will store code, name,
description, price and quantity of a product. Provide calculate button for calculation of the value stock(price*quantity). Display all the details along with the value of stock in a message box.

32) Ctrate a project to declare a class that will store code, name, age and
salary of employee. Provide CACULATE button for bonus calculation which is 10% of salary. Display all the details along with bonus in a message box.

33) Create a project to maintainform no, name, percentage, maths marks


and category of students in a random file. Create a user defined type for maintaining the details. Allow the user to ADD, Modify and Delete details. Use a list box to display the name of the student to the user. Provide a SHOW button to display all the details in text boxes after selecting the name from the list.

S-ar putea să vă placă și