• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Please help.....don't know how to do

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello every one,
I think I need help with this assignemnt...I don't understand how to use the hashtable. I will write the detail here.
It is a electronic testing system . following is detail.
With the system , management staff need to be able to allow the entry / update and store potential questions and answers where questions can be "True/False"," Multiple choice (one choice)", "Multiple choice(multiple answers)"...the system has to allow staff to set up tests where each test will achieve a particular certificate...the test itself will have a set number of questions that will be taken from potential questions specified for that test.
The system needs to allow staff to update /entry...etc the details of student who will do the test...the system also needs to allow the staff to define which student will be doing what test and when.
Above is about the test ...the following is about the student who sit for the test ...The system needs to ask student to login using user name and password and choose which test to do
RUN THE TEST.
-Choose a set number of questions at random from the available questions
-ask each question in turn and record the answer chosen
-Keep track with time...when the time up ...end the test
- evaluate the answer against the stored answers and provide a mark and pass , fail...to students...
I have created all the classes...including :
- Student,
- Certificate,
- Test,
- Training (forgot to tell that before student can do the test , they have to do some training first)
- Shedules(Don't know how to link to Test and student class)
How would I create the relationship between Test, Schedule and test ...and how would I create Questions/Answer class which should be the super class of The 3 type of questions / answers ???
CAn anyone please help ...I will give 50% of my mark to the person who help PLUS and big cap of coffee...

I am quite dump in programing...but I am very good in making coffee.
Thank you .
Mook
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mooky, mooky, mooky...

First of all... Please re-read the JavaRanch name policy. Names are required to be in the format of "first name" + space + "last name", where the first and last names must be longer than one character. Names also can't be obviously fake...

Second... the question you are asking is a really big question, and there needs to be lots more detail... are you using JDBC? How are students, tests, and schedules going to be accessed? I can tell you how a hashtable works, but I don't see how that deals with the rest of the assignment you posted... this assignment seems to be a little more advanced than a beginning programming class... is there one specific thing you need to do?

Third... How is 50% of your grade in the class going to help anyone on here?

Sorry, but I don't drink coffee...
-Nate
 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A hash table just provides a mapping. It sounds like you need to do a little OO work before you continue coding.


how would I create Questions/Answer class which should be the super class of The 3 type of questions / answers


To create a super class you take the item(s) which are the same in two or more classes and move them into a base class. So in this case what do the 3 question classes have in common? Figure out what that is and move those fields/methods into a base class.
(How to use javaranch) Try and come up with specific questions, post them one at a time, and provide small coding examples to give peope some context. And use a two name login so that the people running the site will stop whining at you.
 
mooky
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about the name ...but mooky is my real given name ...if I put the whole name in ...you will be surprise too long ...anyway..Thanks for your reply...seem like I will have to work harder ...
Anyway, thanks for your reply ,,,oh oh ...if you don't drink coffee ...I will make you "hot chocolate"
Thanks
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic