Exam Paper for Business Application Development III, 2009/2010, Exams of Software Development

Information about an exam paper for the module business application development iii in the bsc in business information systems degree. The exam includes two questions: one requiring the creation of a simple gui application for entering and displaying employee information, and another requiring the creation of an inheritance hierarchy and code for classes representing different types of bank accounts. The document also includes instructions for the exam, such as duration and required materials.

Typology: Exams

2011/2012

Uploaded on 11/24/2012

divye
divye 🇮🇳

4.6

(12)

92 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Summer Examinations, 2009/2010
Exam Code(s)
2BF1
Exam(s)
BSc in Business Information Systems
Module Code(s)
MS215
Module(s)
Business Application Development III
Paper No.
Repeat Paper
Special Paper
External Examiner(s)
Dr. D. Ivanov
Internal Examiner(s)
Dr. Tom Acton, Martin Hughes
Instructions:
Candidates are required to answer all questions. Marks will
be awarded for commented code.
Duration
3Hrs
No. of Answer books
Requirements:
Handout
MCQ
Statistical Tables
Graph Paper
Other Material
No. of Pages
5
Department(s)
Business Information Systems
pf3
pf4
pf5

Partial preview of the text

Download Exam Paper for Business Application Development III, 2009/2010 and more Exams Software Development in PDF only on Docsity!

Summer Examinations, 2009/

Exam Code(s) 2BF Exam(s) BSc in Business Information Systems Module Code(s) MS Module(s) Business Application Development III Paper No. Repeat Paper Special Paper External Examiner(s) Dr. D. Ivanov Internal Examiner(s) Dr. Tom Acton, Martin Hughes

Instructions: Candidates are required to answer all questions.^ Marks will

be awarded for commented code. Duration 3Hrs No. of Answer books Requirements : Handout MCQ Statistical Tables Graph Paper Other Material No. of Pages 5 Department(s) Business Information Systems

Please note for every application that you create include your name and

ID number as comments in the first few lines of the code

All Questions Are Compulsory

Question 1: 25 Marks You have been asked to write a simple GUI application that allows a user to enter the following information about an Employee:

  • Firstname (String)
  • Lastname (String)
  • Age (int)
  • PPS Number (String) The main application window should look like this: When the user presses the Print button, the application should show a message dialog that displays the employee's information like this: If the user does not enter a valid integer for age, your application should warn the user with the following message:

Part D 20 Marks Write the code for a class called CheckingAccount that inherits the functionality of the Account class, but extends it to include the following:

  • A data member of type double that represents the fee charged per transaction.
  • A constructor that receives the initial balance, as well as a parameter indicating a fee amount.
  • Overridden methods ‘credit’ and ‘debit’ that subtract the fee from the account balance whenever either transaction is performed successfully. The CheckingAccount versions of these methods should invoke the base-class Account version to perform the updates to an account balance. Part E 15 Marks Write a driver class called TestAccounts that does the following:
  • Creates a SavingsAccount object with an initial balance of €350 and interest rate of 1.5%.
  • Creates a CheckingAccount object with an initial balance of €-5 and a fee of €0.25.
  • Uses polymorphism to print the balance of each account.

For Reference: import java.io.File; import java.io.FileNotFoundException; import java.io.Serializable; import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.FileInputStream; import java.io.ObjectInputStream; import java.io.IOException; import java.io.EOFException; import java.lang.SecurityException; import java.lang.IllegalStateException; import java.util.Formatter; import java.util.FormatterClosedException; import java.util.NoSuchElementException; import java.util.InputMismatchException; import java.util.Scanner; import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField;