• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Homework Urgent

 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..


 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
calculating the length of a string seems to be very expensive..
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what about the Version Management Tool: VSS/CVS
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1159
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic