Mmenu Program - Software Development - Old Exam, Exams of Software Development Methodologies

These are the Old Exam of Software Development which includes Primenumber, Palindrome, Payrate, String Responsibility, Double Payrate, Double Time, String Name, Private Double Calculatepay, Public Void Displaydetails etc.Key important points are: Mmenu Program, Salesperson Number, Product Number, Middle Name, Surname, Person’S initials, Java Program, instance, Menu Program, Lowercase

Typology: Exams

2012/2013

Uploaded on 03/25/2013

digvijay
digvijay 🇮🇳

4.4

(17)

185 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cork Institute of Technology
1
Higher Certificate in Science in Computing in Information
Technology Support – Stage 1
(NFQ – Level 6)
Autumn 2006
Software Development
(Time: 3 Hours)
Section A: This question must be answered.
Section B: Choose 1 question
Section C: Choose 1 question
Examiners: Ms. D. Dunlea
Mr. J. Greenslade
Mr. J. Walsh
pf3
pf4
pf5

Partial preview of the text

Download Mmenu Program - Software Development - Old Exam and more Exams Software Development Methodologies in PDF only on Docsity!

Cork Institute of Technology

Higher Certificate in Science in Computing in Information

Technology Support – Stage 1

(NFQ – Level 6)

Autumn 2006

Software Development

(Time: 3 Hours)

Section A: This question must be answered.

Section B: Choose 1 question

Section C: Choose 1 question

Examiners: Ms. D. Dunlea Mr. J. Greenslade Mr. J. Walsh

Section A

1a) [30 marks] A company has four salespeople who sell five different products. Each salesperson passes in slips for each different type of product sold. Each slip contains the following:

a) The salesperson number b) The product number c) The total price of that product sold that day by that salesperson.

Assume that 10 slips are available. Write a program that reads all this information and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales. After processing all the sales information, print the results in tabular format with each of the columns representing a particular product and each of the rows representing a particular salesperson. Cross total each row to get the total sales of each product; cross total each column to get the total sales by salesperson. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns.

Sample Screen – Input

Please enter sale slips:

1 // 10 times 1 €

Sample Screen – Output after computations

The total sales for each sales person are displayed at the end of each row, and the total sales for each product are displayed at the bottom of each column.

1 2 3 4 5 Total 1 294.00 0.00 0.00 0.00 0.00 294. 2 98.00 25.00 0.00 80.00 30.00 233. 3 etc. 4 etc. Total 392.00 25.00 0.00 80.00 30.

1 b) Write a program that takes in the name of a person in the form of first name, middle name and surname (one String used to hold this value) and outputs the following: The person’s initials There surname in Capitals [10 marks]

1c) Write a program that takes a class of 10, gets their ages and computes the average. This average is displayed on the screen. [10 marks]

Section C

4 a) Write the code for the following class. [15 marks]

4 c) Write a main application that creates two students – the first student uses the first constructor and the second uses the second constructor. Now complete the details for both as indicated below: [10 mark]

Student A Student B 3456T 45688H Mary Murphy Luke O’ Brien Maths = 59 66 English = 89 45 Science = 55 78

Now output the average mark for each student and then print out their details to the screen.

Student

studentNumber: String studentName : String mathsMark : int englishMark : int scienceMark : int

Student() Student(String, String) getName( ): String getMathMark(): int setName(String) setNumber(String) setMathMark(int) setEnglishMark(int) setScienceMark(int) enterMarks(int, int, int) calculateAverageMark() print()

5 a) Write a program that reads in three numbers and finds and prints the smallest and largest number. [10 marks]

5 b) Write a menu program for children to allows them to do the following:

Display my name in UPPERCASE Display my name in lowercase Tell me when I will be 10 years old [15 marks]