4 Replies - 716 Views - Last Post: 22 November 2008 - 10:42 PM Rate Topic: -----

#1 learningjava  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 06-September 08

I am trying to do an assignment and need some pointers

Post icon  Posted 22 November 2008 - 06:07 PM

Create an addition to the Motor Vehicle 3 assignment that will write the information
for the registration to a file. The name of the file should be "Registrations.ran".

Motor Vehicle 3 is a program that asks user for vehicle type, color, mileage etc.
and prints a receipt of the cost to licence the vehicle.
Now I need to do the instructions listed above but I don't
know how. What is a .ran file and what would be steps I would
need to take?

Is This A Good Question/Topic? 0
  • +

Replies To: I am trying to do an assignment and need some pointers

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8346
  • View blog
  • Posts: 31,910
  • Joined: 06-March 08

Re: I am trying to do an assignment and need some pointers

Posted 22 November 2008 - 06:22 PM

View Postlearningjava, on 22 Nov, 2008 - 05:07 PM, said:

Create an addition to the Motor Vehicle 3 assignment that will write the information
for the registration to a file. The name of the file should be "Registrations.ran".

Motor Vehicle 3 is a program that asks user for vehicle type, color, mileage etc.
and prints a receipt of the cost to licence the vehicle.
Now I need to do the instructions listed above but I don't
know how. What is a .ran file and what would be steps I would
need to take?

after 28 posts you must know the rules

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 521
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: I am trying to do an assignment and need some pointers

Posted 22 November 2008 - 06:48 PM

View Postlearningjava, on 22 Nov, 2008 - 05:07 PM, said:

I am trying to do an assignment and need some pointers


I can give you some pointers. I can't resist.

0x3A28213A
0x6339392C
0x7363682E

Refer to pbl's post.

I'm sorry in advance, if you don't like a sarcastic response.

This post has been edited by Locke37: 22 November 2008 - 06:49 PM

Was This Post Helpful? 0
  • +
  • -

#4 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: I am trying to do an assignment and need some pointers

Posted 22 November 2008 - 07:01 PM

i would have helped you sis if i had enough knowledge about this, sorry...try out google..good luck
Was This Post Helpful? 0
  • +
  • -

#5 potator  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 84
  • Joined: 02-December 07

Re: I am trying to do an assignment and need some pointers

Posted 22 November 2008 - 10:42 PM

Since you already have the class that generates the input, your teacher wants you to write the data to a file. a '.ran' file is a hypothetical file type your teacher has given you. You need to come up with a saving system, or use an existing one to format your data. The data should be coming in as Strings. Tie the Strings together with their descriptors e.g.:
"canary yellow" becomes: "Color: canary yellow"

Then you can just copypasta the code from the I/O tutorial:
http://www.dreaminco...wtopic27972.htm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1