0% found this document useful (0 votes)
4K views1 page

2023 - 1 CIT 104 Practical - Exercises Questions

This document provides instructions for 7 practical exercises in Visual Basic or Visual Studio: 1. Write a program to convert temperatures from Fahrenheit to Celsius. 2. Calculate monthly take-home pay considering allowances and deductions from basic salary. 3. Calculate the amount of money expected over a period of at least 5 years given an initial amount and interest rate. 4. Display the projected membership fee for a country club over the next 6 years as it increases by 4% each year. 5. Display all numbers between two numbers entered by the user and their squares in ordered pairs. 6. Take 3 numbers as input and print the square and cube of each number.

Uploaded by

SolomonAdeyinka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4K views1 page

2023 - 1 CIT 104 Practical - Exercises Questions

This document provides instructions for 7 practical exercises in Visual Basic or Visual Studio: 1. Write a program to convert temperatures from Fahrenheit to Celsius. 2. Calculate monthly take-home pay considering allowances and deductions from basic salary. 3. Calculate the amount of money expected over a period of at least 5 years given an initial amount and interest rate. 4. Display the projected membership fee for a country club over the next 6 years as it increases by 4% each year. 5. Display all numbers between two numbers entered by the user and their squares in ordered pairs. 6. Take 3 numbers as input and print the square and cube of each number.

Uploaded by

SolomonAdeyinka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CIT 104 – Practical Exercises

1. Installation of the software – Visual Basic 6 or Visual Studio.


2. Write a program to convert Fahrenheit temperatures to Celsius and display the results.
5
(Hint: C=( F−32 ) × )
9

3. Write a program to calculate your monthly take-home pay considering the following
allowances and deductions on your basic salary
Allowances
Transport = 10% of your basic salary
Rent = 15% of your basic salary
Hazard = 6.5% of your basic salary
Deductions
Pension = 7.5% of basic salary
NHIS = 5% of basic salary
Tax = 2% of basic salary
(Hint: To calculate percentage of a number use ¿( Amount ×% ) ⁄ 100

4. Given an initial amount and a yearly interest rate calculate the amount of money expected
at the end of a period of not less than 5 years. Assume n = 1.

( )
nt
r
(Hint: A=P 1+
n
A = Amount of money expected
P = Initial amount
R = Interest Rate in percent
r = R/100
t = Time Involved in years, 0.5 years is calculated as 6 months, etc.

5. A country club, which currently charges N25,000.00 per year for membership has
announced it will increase its membership fee by 4% each year for the next 6 years. Write
a program that uses a loop to display the project for the next six years.

6. Write a program that should take two numbers (that is, first and last) from the user and
display all the numbers and their square in the form of an ordered pair between the first
and last numbers.
For example, if a user enters 2 to 5 then it should display pairs: (2,4) (3,9) (4,16) (5,25)

7. Write a program in VB that should take 3 numbers from the user as input. Your program
should find and print the square and cube of these three numbers on the screen.

You might also like