-
Pliz help
PLEASE HELP ME WITH THIS CODES AM STUCK HERE.
HEREIS MY MAIL nairobian_0@yahoo.com
TASK 1
A} To get a degree from the Nairobi university , a student needs to successfully complete 26 modules.A student needs to take 10 modules in year 1 and 8 modules in two subsequent years.A part-time student needs to take a maximum of 8 modules in year 1 and a maximum of of 6 modules in each of subsequent 3 year.
Design a java program that a student could use to select their module choices for each year of their study.The program should be able to inform a student of the modules which have been:
-Successfully passed to date
-Not selected to date
-Failed to date
B} The program developed in part a} is to be exetended to provide the following additional functionality:
.Each student object is to be written into a binary file.
.Display a list of students who have failed 2 or more modules in the course of their study.
.Display a list of students, in alphabetical order, who have completed their degree.
TASK 2
An interface has two buttons labelled "Create" and "Exit".Each time a user presses the "Create" button two circles appear at random postions on the screen.The circles need not be of the same size. Once the user presses the "Exit" button,the program is to display the number of times that:
.The area of the two circles do not Overlap.
.The areas of the two circles Overlap.
.The areas of the two circles totally overlap.
in each case the system is to emit an appropriate audio indicating the nature of the circle overlaps(the 3 diffrent scenarios decribed above).Note that the "Create" button may be pressed a number of times before the "Exit" buttonis pressed which displays the result and ends the program.
TASK 3
A user is interested in an alphabetical list of all the 4-letter words which have been used in a text file.To archiev this, a program is required:
.To read the lines from the text file and transferall the words into a string array whose size should not exceded 10.
.Another part of the progarmm takes the words, one at a time, from the string array and adds it into an ArrayList,provided it is a 4-letter word.Duplicate words are not allowed.
.In addition, the program should be able to provide an alpahbetical list of these 4-letter words.
-
-
What have you done, so far, on any one of these tasks? Do you at least have a plan to carry out each task?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks