Business Application Development Exam for First Year BSc in Business Information Systems, Exams of Software Development

The details of the summer examinations 2007/2008 for the first year bsc in business information systems course at the national university of ireland, galway. The exam code is 1bf1 and the module is business application development with module code ms109. The exam has a duration of 3 hours and is divided into two sections. Section a has one question worth 34 marks and section b has three questions worth 22 marks each. The exam requires the use of a programming language to design a software for a ticket station and to answer questions related to programming concepts such as variables, object-oriented programming, and database connectivity.

Typology: Exams

2011/2012

Uploaded on 11/24/2012

divye
divye 🇮🇳

4.6

(12)

92 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Ollscoil na hÉireann, Gaillimh GX_____
National University of Ireland, Galway
Summer Examinations 2007/2008
Exam Code(s) 1BF1
Exam(s) First Year BSc in Business Information Systems
Module Code(s) MS109
Module(s) Business Application Development
Paper No. 1
Repeat Paper
External Examiner(s) Professor H. van der Heijden
Internal Examiner(s) Professor J. F. Collins
Dr. T. Acton
Instructions: Answer QUESTION 1 from Section A AND any THREE
questions from Section B.
Question 1 carries 34 marks. All other questions carry 22
marks.
You should spend no longer than 1 hour on question 1.
Duration 3 Hrs
No. of Answer books
Requirements:
Handout
MCQ
Statistical Tables
Graph Paper
Log Graph Paper
Other Material
No. of Pages 7 including this page
Department(s) Accountancy and Finance
pf3
pf4
pf5

Partial preview of the text

Download Business Application Development Exam for First Year BSc in Business Information Systems and more Exams Software Development in PDF only on Docsity!

Ollscoil na hÉireann, Gaillimh GX_____

National University of Ireland, Galway

Summer Examinations 2007/

Exam Code(s) 1BF

Exam(s) First Year BSc in Business Information Systems

Module Code(s) MS

Module(s) Business Application Development

Paper No. 1 Repeat Paper

External Examiner(s) Professor H. van der Heijden Internal Examiner(s) Professor J. F. Collins Dr. T. Acton

Instructions: Answer^ QUESTION 1^ from Section A^ AND^ any^ THREE questions from Section B.

Question 1 carries 34 marks. All other questions carry 22 marks.

You should spend no longer than 1 hour on question 1.

Duration 3 Hrs No. of Answer books

Requirements : Handout MCQ Statistical Tables Graph Paper Log Graph Paper Other Material No. of Pages 7 including this page Department(s) Accountancy and Finance

OLLSCOIL NA hÉIREANN

NATIONAL UNIVERSITY OF IRELAND, GALWAY

SUMMER EXAMINATIONS 2007/

FIRST YEAR BSc. IN BUSINESS INFORMATION SYSTEMS EXAMINATION

(MS109) BUSINESS APPLICATION DEVELOPMENT

Professor H. van der Heijden Professor J. F. Collins Dr. T. Acton

Time Allowed: THREE hours

Answer QUESTION 1 from Section A AND any THREE questions from Section B.

Question 1 carries 34 marks. All other questions carry 22 marks. You should spend no longer than 1 hour on question 1. Unless specified otherwise, you may use a programming language(s) of your choice.


SECTION A

Q1.

A ticket station sells tickets for ‘bus’, ‘train’, or ‘boat’ trips around a large zoo. Trip prices vary depending on the age of the customer (as children receive a 50% reduction on the standard adult price), and also depend upon the chosen travel method (bus, train, or boat). The station management requires a software program to track the number and type of tickets (that is, bus, train, or boat) sold at the end of each working day, as well as the associated monies taken in at the ticket station on a daily basis. In addition, for each transaction the system produces an onscreen summary of ticket(s) bought, showing the total overall price of the ticket(s), the number of ticket(s) bought (for example, a person bringing their family on a trip may buy 2 adult and 3 child tickets in a single transaction), and the total price for that transaction. The software program will be installed on the solitary ticket seller’s computerised till at the ticket station.

Sketch a suitable user interface for this software, indicating and naming all the controls.

Write the source code necessary for the functioning of your user interface design.

(34 marks)

Q3.

Describe in detail each of the following terms, and separately in each case give examples of how they are used with respect to VB.NET:

(a) Variables (b) Object Oriented programming (c) Database connectivity

(22 marks)

Q4.

(a) Give a full explanation of what each of the following separate pieces of code is doing. Include a complete description of all line(s) of each piece of code.

(i) Me.Close()

(ii) With Me .carTypesComboBox.Add.Item(.Text) End With

(iii) costDecimal = Decimal.Parse(Me.amountTextBox.Text)

(iv) #define HANDLING_CHARGE 1

(8 marks)

(b) The code below contains 4 separate errors, and is not commented. Rewrite a fully commented and error-free version of this code in your answer book_. (Your code comments should fully inform a reader of what is happening in the code)._ The code is related to the application screenshot below.

Private Sub SaveFlavourListToolStripMenuItem_Click(ByVal sender As _ System.Object, ByVal e As System.EventArgs) Handles _ SaveFlavourListToolStripMenuItem

Dim numberOfItemsInteger As Integer Dim flavoursStreamWriter As New StreamWriter("Coffees.txt")

numberOfItemsInteger = Me.coffeeComboBox.Count - 1

For indexInteger As Integer = 0 To numberOfItemsInteger flavoursStreamWriter.WriteLine(Me.coffeeComboBox.Items(indexInteger)) Loop

flavoursStreamWriter.Close mIsDirtyBoolean = False End Sub

(14 marks)

Q5.

(a) Using a programming language of your choice write a FUNCTION that takes 2 integer arguments (say p and q ), and returns 1 if p is an exact numerical multiple of q , otherwise returns 0. For example, if the function’s arguments were (30, 5) then the function would return 1 because 30 is a multiple of 5.

(8 marks)

(b) A program asks a user to input a whole number (n) between 1 and 100. Write a FOR loop that sums the cumulative added total of the positive whole numbers up to and excluding n. (For example, if the user enters '5', the FOR loop will calculate and return the value of 1+2+3+4 only).

(14 marks)

Q6.

(a) Create a C application that asks the user to input a salary amount in euro and cent (for example 323.56, rather than €323.56), and calculates and displays the tax due, and the net amount remaining after tax is deducted. Tax is calculated at the following rates: No tax is due on the first €100; 22% is due on the next €250, and 42% is due on subsequent amounts.

The output may resemble:

Enter salary please: 640.

Total Tax due: 177. Remaining Amount: 463.

(10 marks)

(b) Using a programming language of your choice create an application that asks a user to enter an integer between 0 and 1000, and displays the smallest of that number’s separate digits. For example, if the user enters 72 the program displays 2; or if the user enters 836 the program displays 3. (12 marks)

29 printf("Gross pay: %7.2f\n", gross); 30 /* Don't need return value */

31 } /* end of function */ 32 33 void info(void) /*************************** Decode employee info */

34 { 35 int emp_id, emp_num, dept;

36 37 printf("Enter Employee ID: ");

38 scanf(%d, &emp_id); 39 emp_num = emp_id / 10; /* Separate emp num by deleting 40 last digit */

41 printf("Employee #%d in the ", emp_num); 42 dept = emp_id % 10; /* Dept number is last digit of emp_id */

43 switch (dept) 44 {

45 case 1: 46 printf("Accounting");

47 break; 48 case 2:

49 printf("Manufacturing"); 50 break; 51 default:

52 printf("Sales or other"); 53 }

54 printf(" department.\n"); 55 }; /* End of function */

(18 marks)