0% found this document useful (0 votes)
2 views

PROGRAMMING III

Uploaded by

Lionel Sasalande
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

PROGRAMMING III

Uploaded by

Lionel Sasalande
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

PROGRAMMING III

QUESTION 1

i. What is Visual Basic? (4 Marks)

ii. List two features of Visual Basic (4 Marks)

iii. What is an IDE in the context of Visual Basic? (4 Marks)

iv. Describe the purpose of a 'Form' in Visual Basic (4 Marks)

v. What is a 'Control' in Visual Basic? Give an example (4 Marks)

QUESTION 2

i. What is the Visual Basic Toolbox? (4 Marks)

ii. List two common controls found in the Visual Basic Toolbox (4 Marks)

iii. What is the purpose of the 'Button' control in Visual Basic? (4 Marks)

iv. Describe the use of the 'TextBox' control in Visual Basic (4 Marks)

v. What is the 'Label' control used for in Visual Basic? (4 Marks)

QUESTION 3

Create a Login Form


 Task: Design a login form in Visual Basic that validates user credentials.
 Instructions:
o Add TextBox controls for entering the username and password.
o Add a Button for submitting the login information.
o Add a Label to display a success or failure message.
o Write the code to validate the credentials (e.g., check against hardcoded values) and
display the appropriate message. (10 Marks)

Create a Contact Management Application


Task: Develop a simple contact management application in Visual Basic that allows users to add,
edit, and delete contacts.
 Instructions:
o Add TextBox controls for entering contact details (name, phone number, email).
o Add Buttons for adding, editing, and deleting contacts.
o Add a ListBox to display the list of contacts.
o Write the code to handle the button clicks and update the ListBox accordingly.
(10 Marks)

QUESTION 4

Write a Visual Basic code snippet that calculates the sum of two numbers entered by the user in
TextBox controls and displays the result in a Label control
Provide a code example that demonstrates how to calculate the sum of two numbers entered by the user
in TextBox controls and display the result in a Label control. (10 Marks)

Develop a Temperature Converter Application Task: Create an application in Visual Basic that
converts temperatures between Celsius and Fahrenheit.
 Instructions:
o Add TextBox controls for entering the temperature value.
o Add RadioButton controls to select the conversion direction (Celsius to Fahrenheit or
Fahrenheit to Celsius).
o Add a Button to perform the conversion.
o Add a Label to display the converted temperature.
Write the code to perform the conversion based on the selected direction (10 Marks)

QUESTION 5

Create a Student Grade Calculator (5 Marks)

 Task: Develop a student grade calculator in Visual Basic that calculates the average grade and
determines the grade letter.
 Instructions:
o Add TextBox controls for entering grades.
o Add a Button to calculate the average grade.
o Add a Label to display the average grade and grade letter.
o Write the code to perform the calculations and display the results. (10 Marks)
o

Develop a Currency Converter Application

 Task: Create a currency converter application in Visual Basic that converts amounts between
different currencies.
 Instructions:
o Add TextBox controls for entering the amount to be converted.
o Add ComboBox controls for selecting the source and target currencies.
o Add a Button to perform the conversion.
o Add a Label to display the converted amount.
o Write the code to perform the conversion based on predefined exchange rates. (10
Marks)

You might also like