



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
Information about an exam for the business application development module of the first year bsc in business information systems at national university of ireland, galway. The exam includes instructions, duration, and requirements. Section a of the exam asks students to design a user interface for a car rental software. Section b includes multiple-choice questions and programming tasks.
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) 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 6 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 car rental company hires three different categories of car: small, medium, and large. Cars are rented on a daily and/or weekly basis. Daily hire rates for small, medium and large cars are, respectively, !40, !60, and !75. Weekly rates are, respectively, !200, !330, and !410. The total rental charge depends on the duration of the hire: for example, a hire for 10 days costs the equivalent of 1 x weekly hire fee plus 3 x day hire fees. As such, hire of a small car for 10 days would be !200 + !120. All charges are subject to VAT at 21 %. The company management requires a software program to track cars rented. The program will be installed on the company’s desk computer. For each transaction the system should produce a dated customer's printed receipt for car hire, showing the total net price for the hire, the car category, as well as the hire duration (including hire start date and car return date). 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.
(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 MONTHLY_FEE 100 (ii) SummaryForm.Show() (iii) With Me .shoppingListComboBox.Remove.Item(.Text) End With (iv) itemPriceDecimal = Decimal.Parse(Me.itemPriceTextBox.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
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) StreamReaders (22 marks) Q5. (a) Give the output from the following C program, and state the value of the variable m after the code below has run.
int main(void) { int m; for (m = 1; m < 21; m += 4) printf("%i\n", m * 2); 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! 4 per kilogram (kg) for national deliveries,! 6 per kg for international European deliveries, and! 10 per kg for all other destinations. (18 marks) Q6. (a) Using a programming language of your choice write a FUNCTION that takes 2 integer arguments (say a and b ), and returns 1 if a is a numerical factor of b , otherwise returns 0. For example, if the function’s arguments were (4, 12) then the function would return 1 because 4 is a factor of 12. 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 50. 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).