Docsity

Program for Extensibility - Business Application Development - Exam, Exams of Software Development

Toggle sidebar
bg1
Summer Examinations, 2007/2008
Exam Code(s) 1AE1, 1BD1, 1BD3, 2BF1
Exam(s) Master of Business Studies e-Commerce
Higher Diploma in Systems Analysis
BSc in Business Information Systems Year 2
Module Code(s)
MS841 MS214
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,
Instructions:
Candidates are required to answer a total of 2 questions
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
pf3

Partial preview of the text

Download Program for Extensibility - Business Application Development - Exam and more Exams Software Development in PDF only on Docsity!

Summer Examinations, 2007/

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,

Instructions: Candidates are required to answer a total of^^2 questions

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

Compulsory Question

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:

  • to use the most efficient programming techniques possible
  • program for extensibility
  • fully annotate your code
  • All outputs are to be text based (you do not need to use GUI components) i.e. use toString methods
  • It is not necessary to code for user inputs if/where these would normally be required it is sufficient for you to hard code them into the program

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:

  • Colour
  • Number of seats
  • Number of doors
  • Current Gear and Speed (Gear should change as a function of speed)

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

  • Accelerate: the Fundeo can accelerate twice as fast as the Siesta.
  • Decelerate: the Fundeo has ABS which gets applied in a sharp deceleration.

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.