• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion with data

 
Surya Narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I have downloaded assignments 2 days back. i have a doubt. He is mantaining data completely with flat files. In my project have i to use only flat files? can i use jdbc. Please help me.
thank you to all for your cooperation.
 
Jerry Pulley
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surya,
If you got the same assignment I did, JDBC is not used. The database is implemented by the classes provided by Sun, and they aren't exactly SQL-compliant. Be sure and read your instructions carefully, at least twice.
Jerry
 
Surya Narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Jerry. I have got assignments on FBN. It is a flight ticket reservation system. He included three classes. Data, DataInfo, FieldInfo. He is implementing data through RandamAccessFile. So according to you i will do it through flat files.
I have another doubt Jerry. The instructions are not clear. In my application have i to reserve tickets date-wise or for current date. I mean Have i to reserve tickets in advance or at that time only. I have slight confusion on it. please try to clarify my doubt.
Thank you very much for your advise.
 
Jerry Pulley
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surya,
As far as I can tell from the raw data, a "flight" is a weekly occurrance. It seems that this schema supports booking up to a week in advance, but there's no place to store a date. All you can do is subtract the number of booked seats from the number available.
Jerry
 
Surya Narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jerry,

Do you mean is it enough( database structure given by SUN)? Do we not to maintain the Passenger details? If it requires is it crossing the boundaries of Assignment?
Thanks for your advice.
Surya.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do have occasion to talk to some of the graders once in a while. A common observation is that the assignments they see often try to solve a problem that is much harder than what the assignment asks for.
My recommendation is to read the assignment very carefully, and as literally as possible. So far as functional requirements are concerned, you are best served by doing only what you are asked to do in your assignment. After all, nothing in the grading criteria accounts for innovation or creativity. ;-)
So definitely stick with the data format you are given -- flat file. Do no elaborate on data structures! Sometimes people do this because they think the "implied" assignment is to make the resulting program useful. There is no implied assignment.
And good luck!
-----------------
Michael Ernest, co-author of:
The Complete Java 2 Certification Study Guide

[This message has been edited by Michael Ernest (edited December 22, 2000).]
 
Surya Narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Michael
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic