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?
4 Replies - 584 Views - Last Post: 22 November 2008 - 10:42 PM
#1
I am trying to do an assignment and need some pointers
Posted 22 November 2008 - 06:07 PM
Replies To: I am trying to do an assignment and need some pointers
#2
Re: I am trying to do an assignment and need some pointers
Posted 22 November 2008 - 06:22 PM
learningjava, 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?
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]
#3
Re: I am trying to do an assignment and need some pointers
Posted 22 November 2008 - 06:48 PM
learningjava, 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
#4
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
#5
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
"canary yellow" becomes: "Color: canary yellow"
Then you can just copypasta the code from the I/O tutorial:
http://www.dreaminco...wtopic27972.htm
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|