473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Hi all java gurus

2
am currently a student trying to learn java but the following tasks have proven to more than diffult please help me with the codes.

TASK 1
A} To get a degree from a 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.
Oct 16 '06 #1
1 1580
r035198x
13,262 8TB
am currently a student trying to learn java but the following tasks have proven to more than diffult please help me with the codes.

TASK 1
A} To get a degree from a 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.
To keep matters clear and simple, post a different topic for each problem.
For each problem, post the codes you have so far and any ideas you have.
Oct 16 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: King W.Wang | last post by:
Hi Java gurus, I've copied the following program from the book "Java by Examples". It compiles well with javac. But it does not run as expected. EXPECTED: It is expected that, when you input...
18
by: kk | last post by:
I read this mailing list fairly often, and I am always amazed at what I learn (even not related to Python). I am relatively new to Python. I make my living developing mostly in Java. Python was a...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
2
by: Mondo Dynamo | last post by:
A friend of mine is learning java as part of a Business Studies Degree and is finding it very hard to get to grips with. She has an assignment coming up soon and needs some help, she is offering...
4
by: Dani Shapira | last post by:
Hi. can anyone help me with how to find if JAVA is evalible and if yes, of what version? Thanks Dani
18
by: Rick | last post by:
Hi, We all know that Java has classes but how about basic storage objects like structs? C and C++ have Structs, Pascal has Records, Visual Basic has Types etc. How about Java? Greetings, Rick
13
by: Andrew Bell | last post by:
I'm doing a uni course in the UK and one of my semesters is about programming. This is just going to be compilied and executed with no menu just using command promt (javac classfile.class) I am...
0
by: SuperFly07 | last post by:
Any Java Gurus out there that can help. I need to write a java class which will disable password protection on the Excel file in a folder and we use that file to store data in table. So script must...
1
by: SuperFly07 | last post by:
Any Java Gurus out there that can help. I need to write a java class which will disable password protection on the Excel file in a folder and we use that file to store data in table. So code must...
6
by: moongeegee | last post by:
I have compile my java program as myjava.class. And I can run as "java myjava" without any program. As now, I need to execute myjava.class in javascript. Please shed a light how to execut "java...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.