



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The exam paper for the business application development module of the first year bsc in business information systems course at the national university of ireland, galway. The exam is held during the autumn examinations 2008/2009 and covers topics such as software design, programming, and data tracking for a transit subway station. The exam consists of one question from section a and three questions from section b, with a total duration of 3 hours.
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




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
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.
A transit subway (metro) station sells subway train tickets for a city and its surrounding areas. 3 types of ticket are available to buy: ‘1 trip’, ‘return trip’, or ’day ticket’. Day tickets have a fixed price, but other ticket prices vary depending on ticket type and commuting zone. Such distances are categorised into 3 commuting zones, zones 1, 2 and 3. Zone 1 travel carries the least cost, and zone 3 carries the highest. 1 - trip tickets are single journey only. Return trip tickets permit travel in both directions to and from the destination in the same day. Day tickets permit the ticket holder to take an unlimited number of trips in the same day, on any of the city’s subway trains. The station management requires a software program to track the number and type of tickets sold at the end of each working day at a particular manned ticket booth, as well as the monies taken in at the booth on a daily basis, presented per type of ticket. The software program will be installed on a computer in the ticket booth. 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.
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) Constants (b) .NET Framework (c) Data Streams (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) MainForm.ShowModal() (ii) With Me .MenuListBox.Add.Item(.Text) End With (iii) costDecimal = Decimal.Parse(Me.costTextBox.Text) (iv) #define STANDING_CHARGE 10 (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 SummaryButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClearButton.Click Dim MessageString As String Dim ReturnDialogResult As String If mTotalEventsInteger < 0 Then MessageString = "Total Number of Events: " _ & mTotalEventsInteger.ToString() _ & Environment.NewLine & Environment.NewLine _ & "Total Amount: " & TotalAmountDecimal.ToString("C") _ & Environment.NewLine & Environment.NewLine _ & "Would you like to clear the summary information?" ReturnDialogResult = MessageBox.Show(MessageString, _ "Catherine’s Catering Summary", MessageBoxButtons.YesNo, _ MessageBoxIcon.Information) … code continues on next page
If ReturnDialogResult = DialogResult.No Then mTotalEventsInteger = 0 mTotalAmountDecimal = 0 ClearButton_Click(sender, e) End If Else MessageString = "No sales data to summarise." MessageBox.Show(MessageString, "Catherine's Catering Summary", _ MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub (14 marks) Q5. (a) Create an application that asks a user to enter a positive 2-digit integer, and informs the user whether the sum of that number’s digits is even or odd. For example, if the user enters 35, the program would inform the user that the digit total is even (as the digits 3+5 add to an even 8). The program should not inform the user of the actual digit total (in the above example, the program should not display the number 8). Note: This application doesn’t determine if the number entered by the user is even or odd, only whether the total of that number’s digits is even or odd. (14 marks) (b) As expenses, a travelling sales representative receives 45c per mile for the first 200 miles she travels, and 20c for any remaining miles travelled. Write a function to calculate the monetary amount due to the sales representative, using the number of miles travelled as a solitary argument. (The function should return a value correct to two decimal places, for example, 67.45).