Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


gideon
Java files
1 Answer(s)      4 years and 4 months ago
Posted in : Java Beginners


i want to get an example on how to develop a Java OO application which reads, analyses, sorts, and displays student project marks. In particular, the application should do the following:
1. Load a list of student mark records from a plain-text file in Comma-separated-
value (CSV) format. The input files are structured as follows:
ˆ one student record per line
ˆ all lines starting with a hash symbol (#) are comments and should be
ignored by the application
ˆ the first field is the student number
ˆ the second field is a timestamp in a long format
(as used by e.g. System.currentTimeMillis())
ˆ the last field is a string comment
ˆ all other fields are student marks in float format. Note that the number
of marks may be different for each student record (i.e. line)
The name of the CSV file to read must be given on the command line (the user
should not be asked for it)
2. All student records should be parsed from the file, and kept in appropriate
objects (e.g. a Marks class) within your application
3. The application should output the following in a properly formatted list:
(a) student number
(b) minimum mark of each student
(c) maximum mark of each student
(d) average mark of each student
4. Based on a second command-line parameter, the above list should be sorted
according to different criteria:
Char in 2nd paramameter Sort Order
S Sorted ascending by student number
s Sorted decending by student number
M Sorted ascending by average marks
m Sorted decending by average marks
N Sorted ascending by the number of different marks available
n Sorted decending by the number of different marks available
If the second command-line parameter contains more than one of the above
characters, those should be used as primary, secondary, tertiary, etc. sorting keys according to the order in which they were given. the whole system must make use of polymophism

Advertisement
View Answers

November 11, 2010 at 1:41 AM


Ramu 35,45,55 sudher 20,45,56 .... ... This data in text file how to read the data this one and calclate each person and send the result in another file like Ramu pass 55% sudher fail using JAVA How to write the program



Related Tutorials/Questions & Answers:
java files - Java Beginners
java files  Hi! How to create files (not temporary) when i got exception in my java program. I want to write the complete exception in file...://www.roseindia.net/java/example/java/io/ Thanks
Reading files in Java
suggest for Reading files in Java? Thanks...Reading files in Java  I have to make a program in my project... file in Java. What is the best way to read the file in Java as its big file
Advertisements
Java files - Java Beginners
Java files  i want to get an example on how to develop a Java OO application which reads, analyses, sorts, and displays student project marks.... The input files are structured as follows: ˆ one student record per line ˆ
Copy Files - Java Beginners
Copy Files  I saw the post on copying multiple files (http://www.roseindia.net/java/example/java/io/CopyMultipleFiles.shtml) and I have something... a list of JPEG files that my boss gave me, and I was planning on putting them
java and files - Java Beginners
java and files  hi this is varun working for a software company. i have one doubt that is i have written a program for accessing the xml file from java code,its get executed for that i have used XML Prser. but now
files - Java Beginners
files  Why do we require files to store data?  Hi friend, files to store data, easy to find and access them. Thanks
configuration files - Java Beginners
configuration files  i have to use configuration file in my program "listing of number of files and their modified time of directory",but problem is that directory name should be provided through configuratin file not input
listing files - Java Beginners
listing files  how to list the files and number of files only...]); System.exit(0); default : System.out.println("Multiple files...]); System.exit(0); default : System.out.println("Multiple files are not allow
using java files - Java Beginners
using java files  how i use files in java to store as eg. (information about movies as its name) & when user ask about some movie the movie will come with a picture associated with it plz write me a couple of line codes
Java Concatenate files
Java Concatenate files In this section, you will learn how to concatenate files in java. Concatenating a file, or a series of files, to a single file... have listed the files using listFile() from a particular directory
regarding java files genarated by jsp
regarding java files genarated by jsp  Hi,... I'm running a project...: 233 in the generated java file Syntax error, insert "}" to complete Block" Where to find the genarated java file??? Thank u in advance
files
.   Please visit the following link: http://www.roseindia.net/tutorial/java/core/files/storeobjectsinFile.html
Reading and Writing files - Java Beginners
Reading and Writing files  Hello, please help me to Develop a simple Java application that, when run, Welcomes the users and tells them the name... to investigate writing to files a little (can be also done using Properties
Reading Files and Print - Java Beginners
Reading Files and Print  Hey Guys, I'm a beginner to java and I wanna write this program. I wanna create files including information.... There are almost 30 files. When I want to find students whose school is "School
Filter Files in Java
Filter Files in Java       Introduction The Filter File Java example code provides the following functionalities: Filtering the files depending on the file
files
files  write a java program to calculate the time taken to read a given number of files. file names should be given at command line.   Hello Friend, Try the following code: import java.io.*; import java.util.*; class
how to backup files and folder with Java
how to backup files and folder with Java  Does anyone know to create a backup with java?. backup files and folders from my computer to an external drive.   hi friend, Try the following code may, this will be helpful
list files only - Java Beginners
list files only  i have to list only files and number of files in a directory? i use list() method but it returns both files and directories in parent directory.are there any specific methods that show only files? are file
How to avoid Java Code in JSP-Files?
How to avoid Java Code in JSP-Files?  How to avoid Java Code in JSP-Files
How do I decompile Java class files?
How do I decompile Java class files?  How do I decompile Java class files
java-select dynamic files. - Java Beginners
java-select dynamic files.  My java program is processed files. Now i... in run time. How to insert new files in run time. I need to take system file.(file -> open ) I want to this windows in my java project.   Hi
Java: Searching a string from doc files
Java: Searching a string from doc files   I want to search a string from DOC, DOCX files in java. Can anyone please help me
File handling in Java, Java Files
Java File Handling Tutorials In this tutorial we are providing many different examples of handling file from Java program. The Java File Handling Tutorials will help you learning the file handling concepts in Java. The Java
setting path problem for org.jfree files - Java Beginners
\Java\j2sdk1.5.0\bin;C:\Program Files\Java\j2sdk1.5.0\lib\jcommon-1.0.8.jar;C:\Program Files\Java\j2sdk1.5.0\lib\jfreechart-1.0.4-demo.jar;. and when iam... have downloaded two files jar files and placed them in lib folder to work
Running Batch files in java - Java Beginners
Running Batch files in java  Hi, I am writing a program which... and every line from the batch file and execute it line by line in java. Is anyone... are sending you some sample program code for running batch (.bat) file in Java. We have
Java programming help with files - Java Beginners
Java programming help with files  I want a code or the following... then forms two files to store the data; an american employees file and a non-american employees file. The program finally opens the files for output and prints
Append winword files in java - Java Beginners
Append winword files in java  HI, Im trying to merge 2 winword documents containing text, tables and pictures, resulting doc file should have the same formatting as in original docs. My platform is windows XP and office
Java to extract info from .iCalendar files
Java to extract info from .iCalendar files  I need to write a java program that will extract information (events) from .ics files, such as those used in iCalendar, into HTML format. I started by creating string instance variables
How to convert multiple files in java to .zip format
How to convert multiple files in java to .zip format  i receive multiple files from a remote URL as for (String reportid : reportList...://Answers//Examples"); File[] files = folder.listFiles(); File file=new File
how to browse the general files which are in system using java? - Java Beginners
how to browse the general files which are in system using java?  how to browse the general files which are in system using java? its just like in ms... and it shows all the word document files, like that i want open all image files using
Java JAR Files
Java JAR Files      ... In computing, a JAR file (or Java ARchive) is used for aggregating many files....  WAR (Web Application aRchive) files store XML files, java classes
 

 

 

DMCA.com