SlideShare a Scribd company logo
1 of 2
Download to read offline
TAKORADI TECHNICAL UNIVERSITY
FACULTY OF APPLIED SCIENCE
HND INFORMATION COMMUNICATION TECHNOLOGY
END OF SECOND SEMESTER EXAMINATIONS 2017/2018
COURSE: JAVA PROGRAMMING LANGUAGE (REGULAR)
MAY 2018 TIME: 3 HOURS
GENERAL INSTRUCTIONS
1. Create and name your project as prjFullNameIndexNumber.
Example, prjAbeikuFrench0716060.
5 marks will be deducted from students’ marks if student does not adhere to this instruction.
2. Name your package as com.lastnameIndexNumber.
Example, com.French0716060.
5 marks will be deducted from students’ marks if student does not adhere to this instruction.
3. Save All your work inside the package created in point 2 above.
5 marks will be deducted from students’ marks if student does not adhere to this instruction.
SECTION A
QUESTION 1:
Using the UML diagram create a console program that implements a banking system. [30]
1
Transaction
-amount
BankAccount
-accountNo
-balance
-returnBalance()
-updateBalance()
CurrentAccount
-calculateCharges()
-calculateInterest()
SavingsAccount
-calculateCharges()
-calculateInterest()
NB
1. Name your class BankAccountIndexNumber. Example, public class BankAccount0716060.
5 marks will be deducted from students’ marks if student does not adhere to this notice.
SECTION B
QUESTION 2
Using a loop, create an application that accepts user 10 inputs of examination marks. Using a method,
print in ascending order, the examination marks.
NB. Name of Class; LoopIndexNumber. Example, Loop0716080 [10]
QUESTION 3
Using an Arraylist, create two collections named namesOfStudents1 and namesOfStudents2.
Using a foreach loop, change the first letter of each element inside the namesOfStudents1 collection
and paste the changed names into namesOfStudents2.
NB. Name of Class; ArrayListIndexNumber. Example, ArrrayList0716080 [10]
QUESTION 4
Develop a piece of program that implements a function to determine the largest prime number in any
set of 15 numbers supplied by a user. [10]
NB.
1. Name of Class; LargestPrimeNumberIndexNumber.
Example, LargestPrimeNumber0716080
2. Name of function ; maxPrimeIndexNumber.
Example, maxPrime0716060
2

More Related Content

Similar to JAVA PROGRAMMING (5).pdf

Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager
SusanaFurman449
 
ICT104 Programming Assignment Compiled By Divya Lee.docx
ICT104 Programming Assignment  Compiled By Divya Lee.docxICT104 Programming Assignment  Compiled By Divya Lee.docx
ICT104 Programming Assignment Compiled By Divya Lee.docx
tarifarmarie
 
OL 325 Final Project Guidelines and Rubric Overvie.docx
OL 325 Final Project Guidelines and Rubric    Overvie.docxOL 325 Final Project Guidelines and Rubric    Overvie.docx
OL 325 Final Project Guidelines and Rubric Overvie.docx
cherishwinsland
 
Online_Examination
Online_ExaminationOnline_Examination
Online_Examination
Rupam Dey
 
Accounting information system rev df 020914
Accounting information system rev df 020914Accounting information system rev df 020914
Accounting information system rev df 020914
Puput Hapsari
 
Project Overview –Virtual PMO Services for PJM Students and Alum.docx
Project Overview –Virtual PMO Services for PJM Students and Alum.docxProject Overview –Virtual PMO Services for PJM Students and Alum.docx
Project Overview –Virtual PMO Services for PJM Students and Alum.docx
woodruffeloisa
 

Similar to JAVA PROGRAMMING (5).pdf (20)

E-Learning Student Assistance Model for the First Computer Programming Course
E-Learning Student Assistance Model for the First Computer Programming CourseE-Learning Student Assistance Model for the First Computer Programming Course
E-Learning Student Assistance Model for the First Computer Programming Course
 
Comp421 final project(students) new
Comp421 final project(students) newComp421 final project(students) new
Comp421 final project(students) new
 
4351604.pdf
4351604.pdf4351604.pdf
4351604.pdf
 
Outcome Based Education – A Review
Outcome Based Education – A ReviewOutcome Based Education – A Review
Outcome Based Education – A Review
 
SE-IT MINI PROJECT SYLLABUS
SE-IT MINI PROJECT SYLLABUSSE-IT MINI PROJECT SYLLABUS
SE-IT MINI PROJECT SYLLABUS
 
4th om sem nmims june 2021 solved assignments
4th om sem nmims june 2021 solved assignments 4th om sem nmims june 2021 solved assignments
4th om sem nmims june 2021 solved assignments
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
Prg 211 prg211
Prg 211 prg211Prg 211 prg211
Prg 211 prg211
 
Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager
 
IRJET- Ontology based E-Learning System for Undergraduate Students using FPN ...
IRJET- Ontology based E-Learning System for Undergraduate Students using FPN ...IRJET- Ontology based E-Learning System for Undergraduate Students using FPN ...
IRJET- Ontology based E-Learning System for Undergraduate Students using FPN ...
 
ICT104 Programming Assignment Compiled By Divya Lee.docx
ICT104 Programming Assignment  Compiled By Divya Lee.docxICT104 Programming Assignment  Compiled By Divya Lee.docx
ICT104 Programming Assignment Compiled By Divya Lee.docx
 
Mba206 project management
Mba206   project managementMba206   project management
Mba206 project management
 
OPS 571 Effective Communication - tutorialrank.com
OPS 571    Effective Communication - tutorialrank.comOPS 571    Effective Communication - tutorialrank.com
OPS 571 Effective Communication - tutorialrank.com
 
OL 325 Final Project Guidelines and Rubric Overvie.docx
OL 325 Final Project Guidelines and Rubric    Overvie.docxOL 325 Final Project Guidelines and Rubric    Overvie.docx
OL 325 Final Project Guidelines and Rubric Overvie.docx
 
Oer fc activity_constructor1
Oer fc activity_constructor1Oer fc activity_constructor1
Oer fc activity_constructor1
 
Online_Examination
Online_ExaminationOnline_Examination
Online_Examination
 
Accounting information system rev df 020914
Accounting information system rev df 020914Accounting information system rev df 020914
Accounting information system rev df 020914
 
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
 
Project Overview –Virtual PMO Services for PJM Students and Alum.docx
Project Overview –Virtual PMO Services for PJM Students and Alum.docxProject Overview –Virtual PMO Services for PJM Students and Alum.docx
Project Overview –Virtual PMO Services for PJM Students and Alum.docx
 
6957 June13 exam_paper
6957 June13 exam_paper6957 June13 exam_paper
6957 June13 exam_paper
 

JAVA PROGRAMMING (5).pdf

  • 1. TAKORADI TECHNICAL UNIVERSITY FACULTY OF APPLIED SCIENCE HND INFORMATION COMMUNICATION TECHNOLOGY END OF SECOND SEMESTER EXAMINATIONS 2017/2018 COURSE: JAVA PROGRAMMING LANGUAGE (REGULAR) MAY 2018 TIME: 3 HOURS GENERAL INSTRUCTIONS 1. Create and name your project as prjFullNameIndexNumber. Example, prjAbeikuFrench0716060. 5 marks will be deducted from students’ marks if student does not adhere to this instruction. 2. Name your package as com.lastnameIndexNumber. Example, com.French0716060. 5 marks will be deducted from students’ marks if student does not adhere to this instruction. 3. Save All your work inside the package created in point 2 above. 5 marks will be deducted from students’ marks if student does not adhere to this instruction. SECTION A QUESTION 1: Using the UML diagram create a console program that implements a banking system. [30] 1 Transaction -amount BankAccount -accountNo -balance -returnBalance() -updateBalance() CurrentAccount -calculateCharges() -calculateInterest() SavingsAccount -calculateCharges() -calculateInterest()
  • 2. NB 1. Name your class BankAccountIndexNumber. Example, public class BankAccount0716060. 5 marks will be deducted from students’ marks if student does not adhere to this notice. SECTION B QUESTION 2 Using a loop, create an application that accepts user 10 inputs of examination marks. Using a method, print in ascending order, the examination marks. NB. Name of Class; LoopIndexNumber. Example, Loop0716080 [10] QUESTION 3 Using an Arraylist, create two collections named namesOfStudents1 and namesOfStudents2. Using a foreach loop, change the first letter of each element inside the namesOfStudents1 collection and paste the changed names into namesOfStudents2. NB. Name of Class; ArrayListIndexNumber. Example, ArrrayList0716080 [10] QUESTION 4 Develop a piece of program that implements a function to determine the largest prime number in any set of 15 numbers supplied by a user. [10] NB. 1. Name of Class; LargestPrimeNumberIndexNumber. Example, LargestPrimeNumber0716080 2. Name of function ; maxPrimeIndexNumber. Example, maxPrime0716060 2