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

Pseudocode, Interest Earned, An Acceptable Range, Accumulated Interest, Float Interest, Logical or Syntactical Errors, Separate Line Numbers, Line of Code, Screenshot, Separate Digits 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 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Ollscoil na hÉireann, Gaillimh
GX_____
National University of Ireland, Galway
Summer Examinations 2008/2009
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
7
including this page
Department(s)
Accountancy and Finance
pf3
pf4
pf5

Partial preview of the text

Download Pseudocode - 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

Summer Examinations 2008/

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

OLLSCOIL NA hÉIREANN

NATIONAL UNIVERSITY OF IRELAND, GALWAY

SUMMER EXAMINATIONS 2008/

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 city centre bus station sells commuter bus tickets for the city and surrounding areas. 3 types of ticket are available to buy: ‘1-day’, ‘7-day’, or ’30-day’. Ticket prices vary depending on ticket type and commuting distances. 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. The station management requires a software program to track the number and type of tickets sold at the end of each working day, as well as the associated monies taken in at the ticket station on a daily basis. In addition, for each transaction the system produces an onscreen summary of ticket(s) bought, showing the total overall price of the ticket(s), the number of ticket(s) bought, and the total price for that transaction. The software program will be installed on a computer in the ticket station. 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. (34 marks)

Q3.

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) Variables (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) Me.Hide() (ii) With Me .fruitsComboBox.Add.Item(.Text) End With (iii) priceDecimal = Decimal.Parse(Me.priceTextBox.Text) (iv) #define TIMEOUT 25 (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) If ReturnDialogResult = DialogResult.No Then mTotalEventsInteger = 0 mTotalAmountDecimal = 0 … continued on next page

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) A program asks a user to input a whole number (n) between 1 and 30. Write an appropriate LOOP (do NOT write an entire application) that sums the cumulative added total of the positive whole numbers up to and including n, with the final value held in a suitable variable x. (For example, if the user enters '5', the FOR loop will calculate the value of 1+2+3+4+5, and at loop termination x will be 15). (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 (John, john) then the function would return 1 because the words are the same. However, if the arguments were (john, Johnny) the function would return 0. (8 marks) Q6. (a) Create an application that asks the user to input a salary amount in euro and cent (for example 323.56, rather than !323.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. … continued on next page

15 else 16 { printf("\n Start Interest End\n"); /* Intentional text spacing / 17 balance = 1000; / Opening balance of EUR 1000 / 18 total_interest = 0; / Starting interest is zero / 19 for (year = 1; year <= 3; ++year) / 3-year investment / 20 { printf("Year %i\n\n", year); 21 yearly_interest = 0; / Initialise yearly interest / 22 for (quarter = 1; quarter < 4; ++quarter) 23 { printf("Quarter %i %7.2f", quarter, balance); 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)