

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Exam Code(s) 1AE1, 1BD1, 1BD3, 2BF
Exam(s) Master of Business Studies e-Commerce Higher Diploma in Systems Analysis BSc in Business Information Systems Year 2
Module Code(s) MS841 MS
Module(s) Interactive Programming II Business Application Development II
Paper No. 1 Repeat Paper Special Paper
External Examiner(s) Professor Hans van der Heijden Internal Examiner(s) Professor J. F. Collins, Mr. M. Hughes,
consisting of QUESTION 1 and one other question.
Duration 3Hrs No. of Answer books
Requirements : Handout MCQ Statistical Tables Graph Paper Other Material
No. of Pages Department(s) Accountancy and Finance
Question 1: COMPULSORY 70 Marks
You have applied for a job as a java programmer. As part of the assessment procedure the company have requested you to write a solution to the following problem. You have been advised of the following:
Write a program that simulates the creation of motor vehicles for a virtual motor company VCM ltd. The parameters are as follows VCM ltd currently builds two types of motor vehicle, Cars and SUV’s. It builds two models of car the Fundeo and the Siesta and one SUV model know as the Biggie. The company wants each vehicle to be badged with their VCM logo and would like to be able to recall each vehicle at anytime.
Each vehicle should maintain data for its current condition:
The SUV should be capable of being switched from 2 wheel to 4 wheel drive
Each vehicle should be capable of implementing the following actions
The SUV should also be able to go off-road ie 4 wheel drive however, due to an overheating problem it can only remain in four wheel drive for 5 minutes.
You are required to: Create one vehicle of each type each with varying states for gear, speed etc and display these as text outputs.
Alter the speed of each vehicle (at least one acceleration and one deceleration) and put the SUV into 4 wheel drive.