SunQuest
 
           JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 28th, 2006, 02:02 PM
smart_aki smart_aki is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 6 smart_aki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 7 sec
Reputation Power: 0
Plz help me out for this pro as it took me 2 weeks to do this task but i failed doing

String, Class, Inheritance, Collections, File Handling, Exception Handling


a). In merging the two companies A and B, a single file is to be created which contains the names,addresses and telephone numbers of all the clients who have been previously served by either one or both of the two companies. The text files for the two companies are named Acompany and Bcompany.In both text files, the client details appear in alphabetical order.



Write a Java programs which reads and merges the two test fields and write the result into a new text field named NewCompany.



b) Extends the program developed in part a) to provide the following additional facilities for a user:

· Add new client record to the file

· Delete an existing client record from the file

· Update the details of an existing client

Given a post-code, list the name of all the client with the same post-code. This list should appear in a scrollable text area
Comments on this post
MadCowDzz disagrees: Smells like homework.

Reply With Quote
  #2  
Old July 28th, 2006, 02:21 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
Java and JavaScript are two very different languages. You seem to want Java.

Why did you post this here and in the Java Forum?

Reply With Quote
  #3  
Old July 28th, 2006, 02:43 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
I don't volunteer my time to write programs for people... we're here to help; we're not here to do your work.
Give it a try and ask specific questions when you're stuck...
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
  #4  
Old July 28th, 2006, 03:13 PM
smart_aki smart_aki is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 6 smart_aki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 7 sec
Reputation Power: 0
reply

thank you for the reply
i really appriciate for ur reply
n i have tried this task n it took me 2 weeks but still i m not getting it so thats y one of my friend requested to post ma qns here so i did
i hope u help me out
i need codes to read a file , write a file to read a variable

plz help me out plz i m stuck in this plz

Reply With Quote
  #5  
Old July 29th, 2006, 11:17 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 541 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 15 m 6 sec
Reputation Power: 3
need code

Since you have been working on this for 2 weeks you should have some code (if not several versions of it). Please post the part that you are having the problem with if tyou want help.
If you want someone to write an app for you, there are lots of code writers that could use some cash. What are your time constraints if any, and how much are willing to pay?

Reply With Quote
  #6  
Old July 30th, 2006, 11:08 AM
smart_aki smart_aki is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 6 smart_aki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 7 sec
Reputation Power: 0
here s what i did (code)

the following s the code n in that i have made the structure but i dnt know how 2 read a variable n how to read a file, how to save a file plz help me out

import java.awt.*;
import java.awt.event.*;
public class company extends Frame implements ActionListener,TextListener
{
public Frame f=new Frame("Companies unite");
public Button nx=new Button("Next");
public Button pr=new Button("Previous");
public Label it=new Label("Item:");
public TextField im=new TextField();
public Label nm=new Label("Name:");
public TextField na=new TextField();
public Label ad=new Label("Address:");
public TextField ar=new TextField();
public TextField te=new TextField();
public Label tl=new Label("Telephone:");
public Label co=new Label("Company:");
public TextField cm=new TextField();
public Button ex=new Button("Exit");
public Label b1=new Label("");
public Label b2=new Label("");
public Label b3=new Label("");
public Label b4=new Label("");
public Label b5=new Label("");
public TextArea sm=new TextArea(20,20);
public void bg()
{
f.add(nx);
f.add(pr);
f.add(ex);
f.add(it);
f.add(im);
f.add(sm);
f.add(nm);
f.add(na);
f.add(b2);
f.add(ad);
f.add(ar);
f.add(b3);
f.add(tl);
f.add(te);
f.add(b4);
f.add(co);
f.add(cm);
f.add(b5);
f.setLayout(new GridLayout(6,3));
f.setVisible(true);
ex.addActionListener(this);
nx.addActionListener(this);
pr.addActionListener(this);
im.setText("AKASH");
}
public static void main(String args[])
{
company q=new company();
q.bg();
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==ex)
{
System.exit(0);
}
}
public void textValueChanged(TextEvent t)
{
na.setText(im.getText());
}
}

Reply With Quote
  #7  
Old July 31st, 2006, 01:11 PM
smart_aki smart_aki is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 6 smart_aki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 7 sec
Reputation Power: 0
plz help me out plz

hello
how u doing hope fine any 1 can help me 2 write a pseudocode or dram a flow chart or a class diagram plz help me out plz

String, Class, Inheritance, Collections, File Handling, Exception Handling


a). In merging the two companies A and B, a single file is to be created which contains the names,addresses and telephone numbers of all the clients who have been previously served by either one or both of the two companies. The text files for the two companies are named Acompany and Bcompany.In both text files, the client details appear in alphabetical order.



Write a Java programs which reads and merges the two test fields and write the result into a new text field named NewCompany.



b) Extends the program developed in part a) to provide the following additional facilities for a user:

· Add new client record to the file

· Delete an existing client record from the file

· Update the details of an existing client

Given a post-code, list the name of all the client with the same post-code. This list should appear in a scrollable text area

Reply With Quote
  #8  
Old July 31st, 2006, 02:18 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 541 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 15 m 6 sec
Reputation Power: 3
IO classes

You need to use IO classes. It's been a while since I did anything with these, so you should check your JDK's docs, but you should probably use the FileReader class (or maybe the abstract Reader class). Once you get the input files' contents you can parse the info into arrays and work with the data. Then use the FileWriter class (or Writer) to make the new file.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Plz help me out for this pro as it took me 2 weeks to do this task but i failed doing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway