Recent content by apiwowar

  1. A

    Calculating Area Using Integrals for Complex Building Shapes

    figured it out, couldn't figure out how to delete a post though.
  2. A

    Calculating Area Using Integrals for Complex Building Shapes

    concrete sections for a new building have the dimensions in meters and shapw shown in the figure. a)find the area of the face of the section superimposed on the rectangular coordinate system. The way i tried to solve this was to split it up into 2 integrals and add them together to get...
  3. A

    Comp Sci Java Maze Boundary Check Method for Pathfinding

    I'm writing a method that checks a given coordinates neighbors to see if they are part of the path. the problem I am having with is the conditions that ihave to make sure i don't go outside of the grid. it doesn't seem that the two conditions for col are being checked. i put print statements...
  4. A

    Derivative increasing without bounds

    if f'(x) > 0 for all real values of x then x increases without bounds. I thought that was true but in the back of the book it says false and uses f(x)=2x/sqrt(x2+2) as an example. i worked out the derivative and got f'(x) = 4/(x2+2)3/2. how does that show that the first sentence is false? I'm...
  5. A

    Comp Sci How can I efficiently find the closest leaf in a Java Binary Search Tree?

    Im having trouble with a method that finds the height of the closest leaf. What i have just counts all of the leafs. would i have to separate the recursive calls into two conditional statements to check each one independently? any help or suggestions would be appreciated this is my method...
  6. A

    Comp Sci How Do You Implement Recursive Insertion Sort for Arrays of Strings in Java?

    im having a little trouble getting started with this. it is for an array of strings. would i do insertion sort the same was as if it was an array of ints or doubles but use the compareTo method to see if i should switch two elements? this is my attempt so far, it won't compile due to the...
  7. A

    Comp Sci Understanding Java Recursive Array Reversal

    supposed to reverse an array of strings recursively. this is in a class that has an array object. i came up with what's below. but it reverses the array in a weird order. the array is a 5 element array, the elements are {hello, how, are you, ?}. i passed in the object and after printed out...
  8. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    how would i write that, i would pass num1 over to the toString method? but then how would it get changed by the inc method? this is my program for reference import java.util.Scanner; public class BigIntSimpleTest2andClass { public static void main(String[] args) {...
  9. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    when i try to do a print statement like System.out.println("\n try out inc " + num1.inc()); i get this error its not supposed to have arguments, right?
  10. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    was i right in writing it as num1.inc();?
  11. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    i don't quite understand what you mean. the inc method is inside the BigInt class and its a lab assignment, we were given just the framework and had to come up with the constructors and methods
  12. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    in this case is there a b? I'm just trying to work on one instance of the class. but if there was a b it would be found inside the class, is that what you were suggesting?
  13. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    got another error with the compiler when i tried to test out the method. is that saying that it can't find the inc method? or that it can't pass in num1? this is the error BigIntSimpleTest.java:29: error: cannot find symbol num1 = num1.inc(); ^ symbol: method inc()...
  14. A

    Comp Sci BigInt Inc Method - Adding 1 to Last Element?

    the BigInt means that it returns a BigInt? and that's true, i didnt consider that yet. thank you
Back
Top