D95f8computer Graphics and Visual Basic Lab

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

COMPUTER GRAPHICS AND VISUAL BASIC LAB

Course Code PART-I List of Visual Basic Programs


(1) Create a project that allows the user to input information and then display the lines of output for a mailing label. Fields to be input by the user requires text boxes where information to be displayed belongs in label. Use text boxes for 1st name, last name, street no., city, state, zip code. Provide tool tips, use command buttons for display, clear, print and exit. Make the display button as default button and clear as cancel button. (2) Design and code a project that has shipping information. Use text boxes with labels attached for catalog code, page no., part no.. Use two group of option button on the form enclosed each group in the frame. The 1 st frame should have caption of shipping and contain button for express and ground. For 2nd frame use a caption of payment type and include buttons for check, money order or credit card. Use a check box for new customer. Add command buttons for print, clear and exit. Make the clear button the cancel button and add tool tips. (3) Create a project for book sales. Make text boxes for quantity, title and price with labels. Calculate total price, discount (15%) and discounted price. Make command buttons for calculate, clear and exit. (4) Create a project for the local car rental agency that calculates rental charges. The agency charge $15 per day + $0.50 per km. use text boxes for customer name, address, city, state, zip code, beginning and ending audiometer reading and no. of days the car was used. Use labels to display the miles given and the total charges. Make command buttons for clear, exit and calculate. (5) Create a project that will input an employee salary. Calculate a gross salary, deduction and net salary. Each employee will receive a basic pay of $900 + sales commission of 6% of sales. After calculating the net paid calculate the budget amount of each category based on the % given. Bank pays Commission Gross pay Deduction Net pay $900 6% of sales Basic pay + Commission 18% of gross pay Gross pay - deduction

BCA 420

Credit Units: 03

Budeget :Housing 30% of net pay Food and clothing 15% of net pay Entertainment 50% of net pay Miscellaneous 5% of net pay Use text boxes to input the employee name, amount of sales. Use labels to display the result and the calculation. Use calculates, clear and exit command buttons. (6) Maintain a list of types of ice creams. Use a drop down combo box to hold the ice-cream type and use command button to add, remove, clear, display and exit. Dont allow a blank type to be added to the list. Display an error message if the user select remove without first selecting an ice-cream type. Before clearing the list, display a message to confirm the operation. (7) Create a project that contains a form for entering book information from controls. Text boxes for author and title. Option button for type fiction or non-fiction. Dropdown list for subject that will include bestseller, fantasy, religion, romance, humor, science fiction, business, philosophy, education, self-help and mystery. List box for shelf no. containing RC-111, RC-112, RC-113, and RC-114. Use command buttons display, clear and exit. Use labels to display information. (8) Create a list box, which contains names of all cinema halls of NCR. If you choose name of cinema hall, label display information regarding all movies running in the cinema halls. (9) Create a project that contains students information Text boxes to display name and courses. Option buttons for semester/ year. Use list boxes for computers, business, humanities, Commerce, medical and engineering.

A simple combo for name of college. Display information on a label. Make command buttons for display, clear and exit. (10) Write a program, using recursive function to calculate Factorial of any no., also display the factorial of all no. smaller than that in a list box. (11) Write a program, using recursive function to calculate Nth Fibonacci number. (12) Write a program, using recursive function to generate Fibonacci Series. (13) Write a program, using recursive function to calculate Power of a number. (14) Write a program, using recursive function to calculate GCD of a number. (15) Write a program, using recursive function for Tower of Hanoi, showing all the steps in a list box. (16) Write a program to division of two numbers. Also shows divide by zero error. (17) Write a program, to check whether a given number is prime number or not. (18) Write a program to generate first 10 prime numbers. (19) Write a program, to check whether a given string is palindrome or not. (20) Write a program to enter elements of an array in list box and update them by incrementing or decrementing them by 10 and store the results in other list. (21) Write a program to search an element in an array, using Linear Search. (22) Write a program to search an element in an array, using Binary Search. (23) Write a program to sort elements of an array, using Linear Search. (24) Write a program to find out the no. of character, words and blank spaces in the given string. (25) Write a program to concatenate two strings. (26) Write a program to check whether the given string is in upper case or lower case and also convert its case. (27) Write a program to calculate the sum of the digits of a given no. and also reverse the no. (28) Write a program to create a Pop Up Menu. (29) Design a project that has multiple forms, such that form1 is welcome form, form2 Contains personal details and from3 contains professional information and form4 display both personal as well as professional information of a employee. (30) Design a project for a MDI application, such that child1 contains no menu and child2 contains menu. With this demonstrate working of an MDI form. (31) Create a project that maintains a Publisher table in a Library database, having fields pub id, name, company name, address, city, telephone. Allow Adds and Deletes to the database. Include command buttons for navigation. (32) Create a project that maintains a Publisher table in a Library database, having fields pub id, name, company name, address, city, telephone. Allow Adds and Deletes to the database. Add data control for navigation. Include Add and Delete command buttons in form for adding and deleting records. (33) Create a project that maintains a Book table in Library database, having fields title, author, ISBN, publisher, subject and price. Use ADO Data Environment to display information on form. Use command buttons for navigation. (34) Create a project that maintains a Subject table in Library database, having fields Subject code and subject name. Use ADODC for navigation and command buttons Add and Delete, for adding and deleting records. (35) Create a project that maintains a Vehicle table in Auto database, having fields Inventory id, manufacturer, model name, year, vehicle id and cost. With programming form ADO connection, include command buttons for navigation. Also include Add and Delete command buttons for adding and deleting records.

PART - II List of Computer Graphics Programs


1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) 12) Write a program to change the working mode from text to graphics and plot a pixel. Write a program to draw a line of same dimension in three different graphics mode. Write a program to display line, rectangle, circle and polyline using graphics command. Write a program to draw a line of slope between 0 and 1 using DDA algorithm. Write a program to draw a line of slope between 1 and using DDA algorithm. Write a program to draw a line of slope between 0 and 1 using midpoint algorithm. Write a program to draw a line of slope between 1 and using midpoint algorithm Write a program to draw a dashed line of slope 1 using any line algorithm Write a program to draw a dotted line of slope 1 using DDA algorithm Write a program to draw a line of slope between 0 and -1 using midpoint algorithm. Write a program to draw a line of slope between -1 and - using midpoint algorithm. Write a program to draw an octant of a circle with its center at point (0,0) a using midpoint circle drawing.

13) Write a program to draw a circle with its center at point (0, 0) and radius r using midpoint circle drawing. 14) Write a program to draw an octant of a circle with its center at point (a, b) and radius r using midpoint circle drawing. 15) Write a program to a circle with its center at point (a, b) and radius r using midpoint circle drawing. 16) Write a program to fill a polygon using flood-fill method. 17) Write a program to fill a polygon using boundary-fill method. 18) Write a program to reflect a point in X and Y-axis both. 19) Write a program to rotate a point (100, 50) about origin in anti-clock wise direction. 20) Write a program to rotate a point (100,150) about point (30, 40) in clock wise direction..

Examination Scheme:
Components Weightage (%) CT1 (Lab) 5 CT2 (Lab) 5 PR 15 Attd 5 EE 70

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy