944,123 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1543
  • Java RSS
Oct 24th, 2006
0

Please Helppp..i Really Need To Pass The Coursework.its Due Soon

Expand Post »
Help ANYONE PLEASE.. I HAVE THIS COURSEWORK WHICH IS DUE BY NEXT WEEK AND I KNOW I SOUND SORT OF UNSERIOUS BY SAYING THIS BUT I WISH I COULD UNDERSTAND JAVA LIKE PEOPLE DO BUT ITS TOO HARD.IT'S TOO LATE TO CHANGE MY COURSE AS I THOT I WUD GROW INTO IT AND KNOW IT BETTER BUT APPARENTLY NOT YET.. I have this coursework which for people i know its very easy but I hope someone can help me OUT PLEASEEEE... HERE IS THE QUESTION:

1) R1: Design problem: design an application that reads a specific file – once read the file should be
displayed;
2) R2: Plan the R1 design phase and Develop implementation of R1 design;
3) R3: Test R1 implementation;
4) R4: Design problem: design an application that can read a sequence (set) of files – once read the files
should be displayed.
5) R5: Plan the R4 design phase and Develop implementation of R4 design;
6) R6: Test R4 implementation;
7) R7: Reflect on process R1-R6.



This is the only thing i can do

FileReaders

import java.io.*;
import java.util.*;

public class FileReaders
{
private String fileName = "StudentNoTextAndData.txt";
private String fileLines;
private Vector fileVector;

public FileReaders()
{
readFile();
}

public void readFile()
{
try
{
FileReader file = new FileReader("StudentNoTextAndData.txt");
BufferedReader fileStream = new BufferedReader(file);

fileVector = new Vector();

fileLines = fileStream.readLine();

for(int i = 0; fileLines != null; i++)
{
fileName = fileStream.readLine();
fileVector.add(fileLines);
}

fileStream.close();

}
catch(FileNotFoundException e)
{
System.out.println("File not found");
}

catch(IOException e)
{
System.out.println("cant read file");
}

}




}





readFile

import java.io.*;
import java.util.*;

public class ReadFile
{
private String fileName = "";
private String fileLines;
private Vector fileVector;

public ReadFile()
{
readFile();
}

public void readFile()
{
try
{
FileReader file = new FileReader(fileName);
BufferedReader fileStream = new BufferedReader(file);

fileVector = new Vector();

fileLines = fileStream.readLine();

for(int i = 0; fileLines != null; i++)
{
fileName = fileStream.readLine();
fileVector.add(fileLines);
}
fileStream.close();

}

catch(IOException e)
{
System.out.println("cant read file");
}

}




}


I know this might look kind of lame but I really HOPE SOMEONE CAN DO THIS FOR ME AS I WOULD REALLY APPRECIATE IT..PLEASE HELP MEEEEEEEEEEEEEEEEEEEEEE.....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
dami06 is offline Offline
90 posts
since Oct 2006
Oct 24th, 2006
0

Re: Please Helppp..i Really Need To Pass The Coursework.its Due Soon

no, we're not going to make you pass your exam so you can pass yourself off as a programmer.

Do your own homework. You've had months to either learn how to do it yourself or change your specialisation.
If you haven't that's your own fault, and you should suffer the consequences.
Let it be a lesson to you to be more careful and less lazy (because with a bit of study instead of watching tele or chatting over MSN with your girlfriend you would have been able to do this) next year.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Java Forum Timeline: If
Next Thread in Java Forum Timeline: Java Programming





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC