Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic functions

 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can any body pls tell us how write the following functions

These functions need to be applied for both iterative and non-iterative rules
1.Min
2.Max
3.String Concatenation � this is currently available only as a non-iterative function. this needs to be available for arrays also
4.Left � string function
5.Round � Format needs to be, Round(<Variable>, 1000)
6.Min(ArrayName, Column), should return the minimum of values in the array.
 
Timmy Marks
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since most (all?) of these problems have implementations available, can we assume that this is for some homework assignment?
 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes this is for assignment ...can u pls tell us any logic or sample code
 
Timmy Marks
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of suggestions:

- Ask about a specific problem you are having. This is more likely to get a response

- Better yet, tell us what you think is the proper solution for one (or more) of your methods, and ask what others think of this solution.

I don't think you will have a lot of luck around here getting people to do your homework for you.

Just as an example, tell us in your own words what the function
4. Left � string function
is supposed to do. What information do you need to accomplish this? In the context of this function, what does iteratively mean? When you can answer these questions, I will gladly help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic