Entire Application - Business Application Development - Exam, Exams of Software Development

Entire Application, Application at Runtime, Code Skeleton, Variables are Named, Best Practice, Functional Code, Visual Basic, Try to Guess, Application Informs, Displaying a Message are points from questions of Business Application Development exam.

Typology: Exams

2011/2012

Uploaded on 11/24/2012

divye
divye 🇮🇳

4.6

(12)

92 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Page 1 of 5
Ollscoil na hÉireann, Gaillimh
GX_____
National University of Ireland, Galway
Semester 1 Examinations 2011/2012
Exam Code(s)
1BF1
Exam(s)
First Year BSc in Business Information Systems
Module Code(s)
MS111
Module(s)
Business Application Development 1
Paper No.
1
Repeat Paper
External Examiner(s)
Dr. Danail Ivanov
Internal Examiner(s)
Dr. Michael Lang
Dr. Tom Acton
Instructions:
Answer QUESTION 1 and one other question.
All questions carry equal marks.
You should spend no longer than 1 hour on question 1.
Duration
2 Hrs
No. of Answer books
Requirements:
Handout
MCQ
Statistical Tables
Graph Paper
Log Graph Paper
Other Material
No. of Pages
5
including this page
Discipline(s)
Business Information Systems
pf3
pf4
pf5

Partial preview of the text

Download Entire Application - Business Application Development - Exam and more Exams Software Development in PDF only on Docsity!

Ollscoil na hÉireann, Gaillimh

GX_____

National University of Ireland, Galway

Semester 1 Examinations 2011/20 12

Exam Code(s) 1BF Exam(s) First Year BSc in Business Information Systems Module Code(s) MS Module(s) Business Application Development 1 Paper No. 1 Repeat Paper External Examiner(s) Dr. Danail Ivanov Internal Examiner(s) Dr. Michael Lang Dr. Tom Acton Instructions: Answer QUESTION 1 and one other question. All questions carry equal marks. You should spend no longer than 1 hour on question 1. Duration 2 Hrs No. of Answer books Requirements : Handout MCQ Statistical Tables Graph Paper Log Graph Paper Other Material No. of Pages 5 including this page Discipline(s) Business Information Systems

OLLSCOIL NA hÉIREANN

NATIONAL UNIVERSITY OF IRELAND, GALWAY

SEMESTER 1 EXAMINATIONS 2011/20 12

FIRST YEAR BSc. IN BUSINESS INFORMATION SYSTEMS EXAMINATION (MS111) BUSINESS APPLICATION DEVELOPMENT 1 Dr. Danail Ivanov Dr. Michael Lang Dr. Tom Acton Time Allowed: TWO hours Answer QUESTION 1 and one other question. All questions carry equal 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.


Q1 (compulsory). The screenshot below shows a retail ice cream sales application at runtime. Write the Visual Basic (or C#) code for the entire application using the code skeleton provided below. Ensure that all necessary controls and/or variables are named according to best practice.

Q 4.

(a) Write pseudocode for the following scenario (do NOT write actual code): Each of four salespersons is paid his/her salary every calendar month. Each monthly base salary amounts to €1600. The gross (that is, total amount of) pay for this time period is based on a base salary plus commission. In each case a commission of 10% of base salary is added where the sales amount for that salesperson exceeds €50, in that month. Income tax is calculated as 20% of total earnings, and is deducted from gross pay to yield net pay. A personal statement of earnings for that month is issued to each salesperson, showing salary, commission, gross pay, net pay, and tax deducted. ( 10 marks) (b) The application below allows the user to type a monetary amount into a text box. Depending on the transaction type, upon the user clicking the ‘Calculate’ button, the application either adds the amount to the existing account balance or reduces the balance accordingly. Write a sub procedure to manage the behaviour of the ‘Calculate’ button. ( 15 marks) (c) Create an application that asks a user to enter a temperature in degrees Celsius (C), and converts and displays the equivalent in degrees Fahrenheit (F). Use the formula F = (C * 9 / 5) + 32 (15 marks) (d) An application produces mailing labels for a postal service. The screenshot overleaf shows part of the application at runtime. The related code that follows has five errors, each on separate line numbers (and excluding lines with code comments). Specify the line numbers where the errors occur, and in each case provide a corrected line of code.

01 Option Restricted On 02 03 Public Object LabelForm 04 05 Private Sub DisplayButton_Click(ByVal sender As System.Object, ByVal 06 e As System.EventArgs) Handles DisplayButton.Click 07 'The mailing label has 3 label objects, 1 for each line 08 09 Line1Label.Text = FirstNameTextBox.Text & " " & LastNameTextBox.Name 10 Line2Label.Text = StreetTextBox.Text 11 Line3Label.Text = CityTextBox.Text & ", " & CountyTextBox.Text & " " 12 & PhoneMaskedTextBox.Text 13 End Button 14 15 Private Sub ClearButton_Click(ByVal sender As System.Object, ByVal e As 16 System.EventArgs) Handles ClearButton.Click 17 'Clear the form 18 19 LastNameTextBox.Clear() 20 StreetTextBox.Clear() 21 CityTextBox.Clear() 22 CountyTextBox.Clear() 23 PhoneMaskedTextBox.Clear() 24 Line1Label.Text = "" 25 Line2Label.Text = "" 26 Line3Label.Text = "" 27 With FirstNameTextBox.Text 28 .Focus() 29 .Clear() 30 End With 31 End Sub ( 10 marks)