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

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Closed Thread

Join Date: Oct 2006
Posts: 90
Reputation: dami06 is an unknown quantity at this point 
Solved Threads: 0
dami06 dami06 is offline Offline
Junior Poster in Training

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

 
0
  #1
Oct 24th, 2006
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.....
Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

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

 
0
  #2
Oct 24th, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 1340 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC