| | |
Please Helppp..i Really Need To Pass The Coursework.its Due Soon
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2006
Posts: 90
Reputation:
Solved Threads: 0
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.....
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.....
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.
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.
![]() |
Similar Threads
- pass by help (C++)
- need help understandin how to pass by reference. (Java)
- purchasing a new laptop (Troubleshooting Dead Machines)
- IPSec Pass-thru (Networking Hardware Configuration)
- Printer operation cannot continue due to lack of resources. (Windows NT / 2000 / XP)
Other Threads in the Java Forum
- Previous Thread: If
- Next Thread: Java Programming
Views: 1340 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application apps arguments array arrays automation awt binary bluetooth businessintelligence busy_handler(null) card chat class classes client code collision component constructor database draw eclipse error event eventlistener exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me jar java javafx javamicroeditionuseofmotionsensor javaprojects jmf jni jpanel jtree julia link linux list loop machine map method methods mobile netbeans newbie nls number object oracle parsing plazmic print problem program programming project recursion scanner screen server set sharepoint size smart sms socket sort sortedmaps sql string swing test textfield threads time tree unlimited utility webservices windows





