Docsity

Exam Document for Business Application Development Module in NUI Galway, 2007/2008, Exams of Software Development

Toggle sidebar
bg1
Ollscoil na hÉireann, Gaillimh
GX_____
National University of Ireland, Galway
Autumn 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
6
including this page
Department(s)
Accountancy and Finance
pf3
pf4
pf5

Partial preview of the text

Download Exam Document for Business Application Development Module in NUI Galway, 2007/2008 and more Exams Software Development in PDF only on Docsity!

Ollscoil na hÉireann, Gaillimh GX_____

National University of Ireland, Galway

Autumn 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 6 including this page Department(s) Accountancy and Finance

OLLSCOIL NA hÉIREANN

NATIONAL UNIVERSITY OF IRELAND, GALWAY

AUTUMN 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 hat rental shop hires three different types of dress hat. Each hat is available (at the same price) in five sizes, extra small, small, medium, large, and extra large. Hats are rented on a daily basis. The total rental charge depends on the overall number and type of hats required by a customer, as well as the chosen pickup/delivery method (customer pickup at no cost, same day delivery at a charge of € 2 per hat, or next day delivery to the customer at € 1 per hat). The hire price of four or more hats of any type or size (as an example, for a wedding) in a single transaction receives a 20% reduction. The shop management requires a software program to track the hats rented by the end of each working day. The program will be installed on the shop’s single computerised till. For each transaction the system should produce a dated customer's printed receipt for the hat(s) hired, showing the total net price for the hiring of the hat(s), the number (and size) of hat(s) hired (for example, a person may hire 2 large and 3 medium hats in a single transaction), and the total of any price reductions that may have applied in that transaction. The system’s screen display should also show this information. 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.

Q3.

(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) #define DELIVERY_CHARGE 10 (ii) Me.Close() (iii) With Me .hotelRoomsComboBox.Remove.Item(.Text) End With (iv) salePriceDecimal = Decimal.Parse(Me.salePriceTextBox.Text) (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

Q4.

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) Arrays (b) Do loops (c) Variables (22 marks) Q5. (a) Using a programming language of your choice write a FUNCTION that takes 2 integer arguments (say j and k ), and returns 1 if j is a numerical factor of k , otherwise returns 0. For example, if the function’s arguments were (3, 27) then the function would return 1 because 3 is a factor of 27. Note: A number x is a factor of a number y if x divides evenly into y. (8 marks) (b) A program asks a user to input a whole number (n) between 1 and 100. Using a programming language of your choice, and taking n as argument, write a FUNCTION that sums and returns the cumulative added total of the positive whole numbers up to and excluding n/2. (For example, if the user enters '7', the function will return 6, that is, the value of 1+2+3. If the user enters '12', the function will return 15, that is, the value of 1+2+3+4+5). (14 marks) Q6. (a) Give the output from the following program, and state the value of the variable t after the code below has run.

include

int main(void) { int t; for (t = 1; t < 25; t += 5) printf("%i\n", t * 3); return 0; } (4 marks) (b) Using a programming language of your choice, create an application that calculates the shipping charge for a package where the shipping rate depends on destination: the rate is € 6.20 per kilogram for national deliveries, € 8 per kg for international European deliveries, and € 12.56 per kg for all other destinations.