



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
An examination paper from the national university of ireland, galway for the business application development module of the first year bsc in business information systems. Instructions for the exam, question 1 from section a, and three questions from section b. Question 1 requires the design of a user interface and source code for an application used in a company canteen. Section b questions include writing if statements, pseudocode, and vb.net sub procedures.
Typology: Exams
1 / 7
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) Dr. D. Ivanov Internal Examiner(s) 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 Discipline(s) Business Information Systems
FIRST YEAR BSc. IN BUSINESS INFORMATION SYSTEMS EXAMINATION (MS109) BUSINESS APPLICATION DEVELOPMENT Dr. D. Ivanov 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 company provides a food canteen for its employees. The canteen does not have any cashier’s till for payment. At the entrance to the canteen there is a computer system showing an application on the system's monitor. This application allows the employee to enter his/her employee ID, then to proceed to make a selection of soft drinks, main meal, and dessert. When the employee makes his/her selection using the application, the overall charge for the meal is displayed on screen for the employee’s information. The application stores the overall charge for the meal in a data file together with the employee’s ID, so that later the payroll manager can deduct the charge from the employee’s weekly wage. When an employee is finished using the application, the application resets the display for the next employee to use. Soft drinks cost € 1. Main meals cost € 5, € 6, or €6.75 depending upon choice. Desserts cost € 2. Sketch a 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)
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) Object Oriented Programming (b) .NET Framework (c) Variables (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) Me.BooksTableAdapter.Fill(Me.RnrBooksDataSet.Books) (iii) costDecimal = Decimal.Parse(Me.amountTextBox.Text) (iv) With Me .partsListBox.Add.Item(.Text) End With (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 CoffeeTextBox_TextChanged(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles CoffeeTextBox.TextChanged Dim IndexInteger As Integer = 0 Dim FoundBoolean As Boolean = False Dim ListCompareString; TextCompareString As String Do While Not FoundBoolean And IndexInteger <= CoffeeListBox.Items.Count() ListCompareString = CoffeeListBox.Items(IndexInteger).ToString().ToUpper() TextCompareString = CoffeeTextBox.Text.ToUpper() If ListCompareString.StartsWith(TextCompareString) CoffeeListBox.SelectedIndex = IndexInteger FoundBoolean = True End If IndexInteger += 1 Loop End Sub … continued on next page
(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 all that number’s digits is even or odd. For example, if the user enters 61, the application would inform the user that the digit total is odd (as the digits 6+1 add to an odd 7). The application should not inform the user of the actual digit total (in the above example, the program should not display the number 7). 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) Write a FUNCTION (do NOT write an entire application) that takes 2 string arguments (say word1 and word2) , and returns the integer 1 if word1 is the same word as word2 , otherwise returns 0. The function should handle word case. For example, if the function’s arguments were (Richard, RICHARD) then the function would return 1 because the words are fundamentally the same. However, if the arguments were (Rich, Richard) the function would return 0. (8 marks) Q6. (a) Using a development language of your choice create an application that asks the user to input a salary amount in euro and cent (for example 410 .56, rather than € 410 .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)
24 interest = balance * rate / 100 * .25; 25 yearly_interest += interest; 26 balance = balance + interest; 27 printf("%7.2f %7.2f\n", interest, balance); 28 } 29 printf("\nTotal interest earned in the year: EUR %.2f\n\n", 30 yearly_interest); 31 total_interest = yearly_interest; /* Accumulate */ 32 } 33 printf("\nEnding balance: EUR %.2f. Interest earned: EUR %.2f.\n\n", 34 balance, total_interest); 35 } 36 printf("Enter interest rate (zero to quit): "); 37 scanf("%f", rate); 38 } //end while 39 system("PAUSE"); 40 } //end main (18 marks)