• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Homework Urgent

 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to write a program to calculate the lenght of a piece of string, I don't know where to start so please post a complete solution. I need to hand this in today so please reply.
 
ali haider
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you gotta be more specific dude... if you want the program in Java all it's gonna take is string.length; if you want a general algo give us the inout type etc..
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nigel,

Im at work.. but I took time off just you help you. You didn't
bother to search the web for a usefull API, tutorial, ect. before asking
but that's no problem.. I did that for you.

I just send you an email containing the code and a 10 page paper on
your problem.

Hope it helped..


 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just send you an email containing the code and a 10 page paper on
your problem.

Hope it helped..


Took you more than an hour though...

TzkTzk
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nigel Browne:
I have to write a program to calculate the lenght of a piece of string, I don't know where to start so please post a complete solution. I need to hand this in today so please reply.


I would suggest using a JSP/Struts/EJB model.

You need atleast 3 JSP pages, login page, data entry screen (to enter the String), and one more to display the result (the length of the String)
Then you need few EJBs - for user validation, calculating the string length etc.

And ofcourse, you need a database to store the user details.

HTH
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mani Ram:


I would suggest using a JSP/Struts/EJB model.

You need atleast 3 JSP pages, login page, data entry screen (to enter the String), and one more to display the result (the length of the String)
Then you need few EJBs - for user validation, calculating the string length etc.

And ofcourse, you need a database to store the user details.

HTH


Dont forget the IDE.

 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:


Dont forget the IDE.



Good point. Add some UML tool (preferably Rational Rose) to do the design.

Here is the list of software I would suggest for you to finish this homework

Application Server: WebLogic
Database: Oracle
IDE: Anything that is not free
Design Tool: Rational Rose
Configuration Management Tool: Rational ClearCase
Defect Tracking Tool: Rational ClearQuest
Testing Tool: WinRunner & Rational Testsuite
Project Management Tool: MS Project

Did I miss something?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mani Ram:


Good point. Add some UML tool (preferably Rational Rose) to do the design.

Here is the list of software I would suggest for you to finish this homework

Application Server: WebLogic
Database: Oracle
IDE: Anything that is not free
Design Tool: Rational Rose
Configuration Management Tool: Rational ClearCase
Defect Tracking Tool: Rational ClearQuest
Testing Tool: WinRunner & Rational Testsuite
Project Management Tool: MS Project

Did I miss something?


yeah.

VS .NET 2003.
.NET framework.
Logger
pooling
 
Shamu Somasundaram
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
calculating the length of a string seems to be very expensive..
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what about the Version Management Tool: VSS/CVS
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now would that be a string as in "A String" or the thing that cats like to play with. Now if it is "A String", then you need to hard code it in your code. Then use .trim() just because it creates another String. Then you can convert it to a byte array, and use the List.asList method then use the Arrays.toArray() method to go back, then use this new array intot he constructor of String to get your results.

Now if it is the things cats like to play with, just create a YardStick class, put the string in the DVD burner, hit play, and your done.

Mark
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Senthil B Kumar:
what about the Version Management Tool: VSS/CVS


That's what Rational ClearCase is good for. Much more expensive than VSS, CVS or SVN, so it clearly must be much better.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nigel Browne:
I have to write a program to calculate the lenght of a piece of string...

This can't be done using Java. It can only be done using C# or PowerPoint.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mani Ram:

Did I miss something?


A bug tracking tool, of course. Don't know a good one, though.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:


That's what Rational ClearCase is good for. Much more expensive than VSS, CVS or SVN, so it clearly must be much better.


You should really back up your ClearCase code in PVCS Dimensions. If that solution does not work for you, you should try the tip suggested elsewhere in this forum: delete all your work at the end of the day. You could probably find that post by searching for urgent.
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
string.length is not efficient. it has to go over each character and count it. A better way to do this is to write the string to a file, and check the size of the file
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:


A bug tracking tool, of course. Don't know a good one, though.


It's there in my list
Defect Tracking Tool: Rational ClearQuest
Expensive and must be awesome
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uum
some more things which i think you should take care:
setup a Jira
Setup a wiki
creating Maven build files could be helpful.
Announce it as An opensource project and ask for every ones help
People will help you more then.
 
Peter Rooke
Ranch Hand
Posts: 851
1
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you need is a proper project, a few steps:

1) Soft Systems Methodology Analysis - so you can understand the social-technological environment. Hire a change manager, they will change things.
2) Development of the project using SSADM.
3) Finally the "Mongolian Hordes" technique.

----------------
"A problem for every solution" - the British Civil Service.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand just how urgent this question is, so I thought I'd point out that the answer is in this thread.
 
Zoots Allures
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Speed is an issue - so you best develop in assembler - this works well with SSADM - there are a few SSADM to assember CASE / RAD tools. Also why use third party tools - why not develop your own IDE's, database, persistance models, version control systems (etc) - heck why not develop your own language as well. Thats the best way to work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic