ICT2611
EXAM PACK
2024
LATEST EXAM PACK QUESTIONS AND ANSWERS
AND SUMMARIZED NOTES FOR EXAM
PREPARATIONS.
UPDATED FOR 2024 EXAMS!!
, Stuvia.com Stuvia.com
- The Marketplace
- The study-notes
to Buy and marketplace
Sell your Study Material
Question 1 [40 marks]
The specification for this question pertains to an application for calculation and
classification of the bmi for members of the public. Bmi stands for body mass index, this
is a significant health measurement. Bmi is a ratio calculated using the body mass of an
individual and their height. Different countries have different classification scales for
bmi. The table below is for the Republic of South Africa, it represents bmi ranges for
females as well as males. Bmi is a risk factor for a number of non-communicable
diseases including cardiovascular diseases and type 2 diabetes.
bmi classification
bmi < 20 Underweight male
bmi < 19 Underweight female
bmi > 24 Overweight male
bmi > 23 Overweight female
The formula for calculating bmi is the following:
Bmi = Mass(kg) / Height2 (m)
1.1 Draw the flowchart for the procedure for classification of the bmi for an individual.
You must also consider the gender of the individual in the classification.
[12 marks]
1.2 Write the full program for this application in VB.Net. The application must have the
following: a main window with inputs for mass and height; a button for calculating and
classifying the individual’s bmi; and, the application must throw an exception when a
height of zero is entered, and it must alert the user about this, and allow user to re-enter
value. The result can be displayed in a label on the application window. Provide the
source code for the application as well as other information as per stipulation in the
rubric below. [28 marks]
Marking rubric:
- Design of application window. [5 marks]
- Correct calculation and classification of individual bmi. Provide screenshots to prove
application is working correctly. [15 marks]
- Exception handling. [8 marks]
PLEASE TURN OVER
2
Downloaded
Downloaded
by:by:
iramoodleycollege
hluksmaduna | hluksmaduna@gmail.com
| iramoodley887@gmail.com Want to earn $1.236
Distribution of this document is illegal extra per year?
, Stuvia.com Stuvia.com
- The Marketplace
- The study-notes
to Buy and marketplace
Sell your Study Material
Question 2 [20 marks]
The specification for this question is for an array based application for data entry of
values of measurements of the tree heights of a particular specie of tree for a research
project. The table below is a sample of five measurements. The application allows a
user to enter ten measurements only. The measurements should be stored in an array.
The application window should also include two buttons, one for calculating the average
of the measurements and another one for calculating the sum of the measurements.
Provide the source code for the application as well as other information as per
stipulation in the rubric below.
Measurement Height in
meters
1 10.58
2 11.70
3 11.74
4 14.81
5 15.92
Marking rubric:
- Design of application window. Provide screenshot of application window. [4 marks]
- Correct data input of ten values only. [4 marks]
- Data stored in an array. [4 marks]
- Correct calculation of average of the measurements. [4 marks]
- Correct calculation of the sum of the measurements. [4 marks]
PLEASE TURN OVER
3
Downloaded
Downloaded
by:by:
iramoodleycollege
hluksmaduna | hluksmaduna@gmail.com
| iramoodley887@gmail.com Want to earn $1.236
Distribution of this document is illegal extra per year?
, Stuvia.com Stuvia.com
- The Marketplace
- The study-notes
to Buy and marketplace
Sell your Study Material
Question 3 [10 marks]
In this question, we want to write a procedure that can extract alphabetical characters
from an input string. An alphabetical character is any character from “a” to “z” (numbers
and empty spaces are not considered). It should then build a new string with them and
format it as uppercase.
For example input string “mercedes benz 230 ce”, should become
MERCEDESBENZCE.
Downloaded
Downloaded
by:by:
iramoodleycollege
hluksmaduna | hluksmaduna@gmail.com
| iramoodley887@gmail.com Want to earn $1.236
Distribution of this document is illegal extra per year?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Solutionist. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R47,54. You're not tied to anything after your purchase.