0% found this document useful (0 votes)
328 views5 pages

Prog 512 (2.2)

This document contains instructions for a 2-hour programming exam consisting of 4 questions worth 100 marks total. Section A contains 1 compulsory question worth 40 marks requiring the design and coding of a Windows application to calculate commuting costs. Section B contains 3 optional questions worth 30 marks each, involving creating a login system, Access database, and sequential file operations. The exam is administered by Richfield Graduate Institute of Technology for their Programming 512 practical course.

Uploaded by

Ezra Alekwe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
328 views5 pages

Prog 512 (2.2)

This document contains instructions for a 2-hour programming exam consisting of 4 questions worth 100 marks total. Section A contains 1 compulsory question worth 40 marks requiring the design and coding of a Windows application to calculate commuting costs. Section B contains 3 optional questions worth 30 marks each, involving creating a login system, Access database, and sequential file operations. The exam is administered by Richfield Graduate Institute of Technology for their Programming 512 practical course.

Uploaded by

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

PAPER B

RICHFIELD GRADUATE INSTITUTE OF TECHNOLOGY (PTY) LTD

HIGHER EDUCATION AND TRAINING

FACULTY OF INFORMATION TECHNOLOGY

PROGRAMMING 512 (PRACTICAL)

2ND SEMESTER NATIONAL FINAL EXAMINATION

DURATION: 2 HOURS MARKS: 100 DATE: 19 NOVEMBER 2019

EXAMINER: OLAGUNJU OLUSEGUN MODERATOR: RAYMOND SHAMBA

This paper consists of 4 questions and 5 pages including this page.

PLEASE NOTE THE FOLLOWING:


1. Ensure that you are writing the correct Examination paper, and that there are no missing pages.
2. You are obliged to enter your student details on the answer sheet. The answer sheet provided
are the property of Richfield Graduate Institute of Technology (Pty) Ltd and all extra sheets must
be handed to the invigilator before you leave the examination room.
3. If you are found copying or if there are any documents / study material in your possession, or
writing on parts of your body, tissue, pencil case, desk etc. your answer sheet will be taken away
from you and endorsed accordingly. Appropriate disciplinary measures will be taken against you
for violating the code of conduct of Richfield Graduate Institute of Technology (Pty) Ltd
Examinations Board. Therefore, if any of these materials are in your possession you are requested
to hand these over to the invigilator before the official commencement of this paper.
4. The question paper consists of 2 sections.
 Section A is compulsory
 Section B comprises of 3 questions and you are required to answer only two questions

SUGGESTED TIME REQUIRED TO ANSWER THIS QUESTION PAPER


NUMBERS QUESTIONS MARKS TIME IN MINUTES
SECTION A: COMPULSORY
1 Question One (Compulsory) 40 50
SECTION B: ANSWER ANY TWO QUESTIONS
2 Question Two (Optional) 30 35
3 Question Three (Optional) 30 35
4 Question Four (Optional) 30 35
TOTAL 100 120

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_512 (P) (19.11.2019) Issue Date 01/10/2019

Page 1 of 5
SECTION A: (THIS SECTION IS COMPULSORY) (40 MARKS)

QUESTION ONE (40 MARKS)

1.1 Design a windows desktop application and write the code that will execute according to
the program requirements shown below. The purpose of the application is to computes
the yearly cost of commuting to work via Uber car services, subways or bus. The user
selects how she comute to work and then answers questions based on that response to
comute the cost of traveling to and from work for one year in a city.

1.1.1 The user first views a windows application with a title and a ComboBox object
that asks how she commutes – Uber, subway or bus. The other objects on the
form are not active at this time. (10)
1.1.2 After the user selects the mode of travel, the questions related to that type of
travel are displayed immediately. (10)

2.2 The following customized questions are displayed based on the user’s choice;

 Uber; Daily round trip cost using Uber, days worked per month. When you
compute the Uber cost, increase the cost by 20 percent to cover surge pricing.
Surge pricing is when fares temporarily increase to encourage more Uber
drivers to get on the road and head to area of the city where demand for rides
is high.
 Subway; Round trip transit fare and days worked per month.
 Bus; Round trip transit fare and days worked per month.

2.2.1 After the values have been validated, calculate the cost of commuting for one
year for the selected choice. User entry and cost must be saved to the text file
called Cost. (15)
2.2.2 All the values that the user enters should be validated. (5)

SECTION B: ( ANSWER TWO QUESTIONS FROM THIS SECTION) (60 MARKS)

QUESTION TWO (30 MARKS)

Create a Login System that uses Admin as a Username and Admin1 as Password like the
picture below. If details are correct, application will then grant user to the next form. The
second form would accept Student Info and will allow user to save data to Access
Database called StudentInfo.accdb. The name of the table should be Students. The ICAS
No should be random number from range 1000 to 5000.

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_512 (P) (19.11.2019) Issue Date 01/10/2019

Page 2 of 5
(30)

QUESTION THREE (30 MARKS)

3.1 Create the Database below using MS Access

(15)

Fig 3.1

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_512 (P) (19.11.2019) Issue Date 01/10/2019

Page 3 of 5
3.2 Design a form like the one shown in Figure 3.2:

Fig 3.2: Possible form design

- Search Button: allow user to enter information and search through the
database.
- Next & Previous Button: Allow user move between records. (15)

QUESTION FOUR (30 MARKS)

4.1 You have just been employed as an IT programmer at ITIHub, an IT security company. You
are given the responsibility to handle the following tasks: create a sequential file
consisting of employee names and then display the entire contents of the file in a list box.

4.1.1 Create a sequential file consisting of names of the company’s employees and then
display the entire contents of the file in a list box. (excluding contents in list box)

(5)

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_512 (P) (19.11.2019) Issue Date 01/10/2019

Page 4 of 5
4.1.2 Write code under the Create File button to create a new file called employee.txt (8)
containing the names from Patel to Gopee as in the list box.

4.1.3 Write code under the Display File button to display the captured names from the (7)
file employee.txt containing the names from Patel to Gopee as in the list box

4.1.4 To enhance your system, add message box to show all data captured, and if all (5)
documents entered.

4.1.5 Add a menu control, with FILE in it add CLEAR and EXIT, code for this accordingly. (5)

TOTAL: 100 MARKS

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_512 (P) (19.11.2019) Issue Date 01/10/2019

Page 5 of 5

You might also like