• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

pls help me do this project

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody ,
I got my Sun certification in Java 2 Programmer level last month.I am at present trying to creat a mock exam ( it is small token of appreciation to other sites which helped me a lot to get my certification).I was very much inspired by various sites dedicated to help people learn Java .So I thought I too should contribute to this.I started with website having tutorials .mock exam etc..I decided to do the mock exam completely in java.I am facing a lot of problems.Can somebody help me pls.
These are the places where I need help :
1.I want to show time...in the sense ..I want it to decrement after every minute.ie.when the exam starts time will be 02:00. Then it should start ticking ie next second it should show 01.59.How should I go about it..
2.Since I am not yet thorough with JDBC, I am actually reading a file(questions,options,answers) and putting everything in a vector and then displaying that one at a time.Is this the right way.Because when I try to do the same thing in a applet it is not working as in applet we cannot read or write file.Is it possible to do this without JDBC.
3.After the mock exam is finished when the finish button is pressed ,I want the marks frame to be displayed. I don't know how to go about it.
Can anyone help me pls.
I don't want to lose hope and stop doing it.
waiting for reply.
Sudha Rajaram
[This message has been edited by Sudha Rajaram (edited July 14, 2000).]
[This message has been edited by Sudha Rajaram (edited July 14, 2000).]
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sudha,
YOu have to think in waht way you want to develop mock exam. Will question be dynamic- say from a bunch of 200 question you randomly pick 50 or so and further depending how fool proof you want system to be. I think JSP - Bean method would be good and simple.
Thanks
Soum
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sudha;
1. Swing has a <code>Timer</code> class that accepts listeners to notify when it generates an event.
2. Yes, you can do this without JDBC (in fact, JDBC is overkill for this requirement). You could, for instance, put the questions in the applet tag as named parameters that the applet could load.
3. The finish button needs an action listener that creates the marks frame and calls its <code>setVisible</code> method.
Soum raises a good point - we need to know something about the requirements and the design.
If you'd like, and if the moderators think its OK, we could use this forum to walk through the process of designing your application / applet. We'd do all the stuff good designers do - write down requirements, pick an architecture, design the class structure and operating scenarios, and (most of all) do walkthroughs on everything. It'd be educational for everyone to participate in a complete design process. It'll take longer, but it should be some fun. What do you think?
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this discussion, it might be useful to set things up to add the jdbc in later with the leats change to the rest of the project. http://www.javaranch.com/ubb/Forum3/HTML/000076.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic