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...
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...
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...
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...
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...
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...
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)
{...
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?
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
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?
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()...