This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Section 4 - Algorithm Design inquiry

 
javaseeds
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have reviewed the Objectives of SCJA v1.0, and found the Algorithm Design and Implementation section a little vague.

Are the algorithms sorting one? Or possibly rules-engine ones?

one of these objectives:
Given an algorithm with multiple inputs and an output, develop method code that implements the algorithm using method parameters, a return type, and the return statement, and recognize the effects when object references and primitives are passed into methods that modify them.


This just seems like general Java development to me - I'm guessing the exam gives an algorithm and expects the candidate to devise the answer given the constraints. Similar to word problems in algebra class?

Any insight is appreciated
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I think you're right.

So, if you know how to write a method signature with the appropriate arguments passed, and know how to return the correct type, you'll be okay.

So, a method called calcTotal that takes two doubles and returns a double would look like this:

public double calcTotal(double a, double b){return 0;}

as opposed to this:

public (double a, double b)calcTotal() {}

I'm pretty sure that's where they're going with that objective.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic