S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
It is currently Thu, 23 May 2013 19:59:37 UTC

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: sorting student records
PostPosted: Wed, 1 Feb 2006 03:19:56 UTC 
Offline
Math Cadet

Joined: Sun, 29 Jan 2006 18:21:06 UTC
Posts: 9
Could someone give me some pointers on how to start this porgram? Thanks in advance! :wink:

Write a program that retrieves the "Lab17a.dat" text file. This is the same text file that you used for the Lab17a assignment with the same student record format. For this assignment you will not only retrieve a text file, but also create a new text file. This means that in addition to using the FileReader class and the BufferedReader class, you will also need to use the FileWriter class and the BufferedWriter class of the java.io.* package.

Retrieve the "Lab17a.dat" file and check the gpa of each student record. A new file, called "Lab17b.dat", is created with all student records purged that have gpas below 2.0. As you execute the program you need to display the record of each student that will be purged, along with a count of the total records purged.

First output:
Name: Ann Seaborn
GPA: 1.785

Name: Mary Pridgen
GPA: 1.957

Name: Steven Johnson
GPA: 0.785

Name: Tom Tooch
GPA: 1.456

Name: Mike Bruun
GPA: 1.783


Total records purged: 5

Second output
Bart Reagor
27
2.075
Kristyn Reckner
19
3.225
Paul Reiman
41
4.000
Andy Reitinger
20
3.525
William Reynolds
50
3.375
William Robbins
34
2.875
Brian Roberts
23
3.175
Lauri Robertson
19
2.925
Richardson Robinson
26
3.210
Laurie Rosemberg
45
4.000
Barbara Salsa
18
3.000
Lori Salbury
23
3.455
Diane Simcox
32
2.175
Kevin Sims
67
3.235
Michael Ward
19
3.451
Cheryl willis
37
3.576
Tracy Springer
41
2.305
Nancy Barone
25
2.975
Patti Skinner
47
2.743
Diana Rockel
56
3.456
Michelle Ritter
25
4.000
Mali Cozart
16
2.345
Todd Deans
22
2.023
Laura Collins
30
3.999
Debbie Mozart
40
2.999
Gordon Collins
25
3.100
Susan Craft
29
3.754
Vance Brawner
31
3.678

Thanks again!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Contact Us | S.O.S. Mathematics Homepage
Privacy Statement | Search the "old" CyberBoard

users online during the last hour
Powered by phpBB © 2001, 2005-2011 phpBB Group.
Copyright © 1999-2013 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA