Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Yutxz

My program receives no errors or run time errors, but for some reason it runs infinitely. I need help pinpointing the problem D: I will post additional information about the exercise I am trying to solve in this thread. [CODE] package captcrunch; /** * * @author Josh */ public class …

Member Avatar for JamesCherrill
0
216
Member Avatar for Yutxz

[B]Hey guys! I'm doing another school project, bleh ._. The method I need help on is called isFlush. It's a boolean that needs to determine whether the hand (subDeck) is a flush or not. A flush contains five cards with the same suit. I want to know how to just …

Member Avatar for Akill10
0
66
Member Avatar for Yutxz

Alright, this is a school assignment. Unfortunately, we were given about a paragraph of info on apps so I'm not sure what I'm doing wrong. I know it's a pretty random app, but these are the elements that she wanted. My problem is that it runs infinitely when I run …

Member Avatar for JamesCherrill
0
99
Member Avatar for Yutxz

Hello! I'm trying to solve this problem and I've been at it for hours. [I]Write a method called handScore that takes an array of cards as an argument and that adds up (and returns) the total score. You should assume that the ranks of the cards are encoded according to …

Member Avatar for apines
0
248
Member Avatar for Yutxz

Hello! I'm working off of a problem in my "How To Think Like A Computer Scientist" textbook. The exercise in the book is having me work with a deck of cards. I receive two errors in my current code. The first is that every method after Class Card {...} says …

Member Avatar for kramerd
0
118
Member Avatar for Yutxz

I'm developing a program based on the Tower of Hanoi. It accepts the number of discs and returns the amount of turns it takes for those discs to complete the conundrum. All of my inputs work fine, until the input (d) is greater than 31. Is the result too large …

Member Avatar for jon.kiparsky
0
125
Member Avatar for Yutxz

Why is my while statement being ignored? [B]Problem:[/B] Write a method called squareRoot that takes a double as a parameter and that returns an approximation of the square root of the parameter, using this algorithm. You may not use the built-in method Math.sqrt. As your initial guess, you should use …

Member Avatar for masijade
0
250
Member Avatar for Yutxz

I received the error "possible loss of precision" on the last line of my code. Is it not possible to return a double? My instructions were to create a program, called power, that took a double (x) and raised it to an integer (n) power. [CODE] package power; /** * …

Member Avatar for Yutxz
0
192
Member Avatar for Yutxz

My problem is to design a program that uses a mathematical model for heat loss, or Tnew = Told - m(Told - Tair). It also asks me to repeat the code for 60 minutes, generating a new answer every minute. I have completed the code, however I receive no output. …

Member Avatar for javaAddict
0
1K
Member Avatar for Yutxz

Hey guys, I'm trying to solve a problem I received in school. It states: [I] Write a method named checkFermat that takes four integers as parameters—a, b, c and n—and that checks to see if Fermat’s theorem (a^n + b^n = c^n) holds. If n is greater than 2 and …

Member Avatar for NormR1
0
242
Member Avatar for Yutxz

Hey guys, I'm having a little trouble with my Java homework. So far I'm stuck on problem 3.5, C). My code so far is: [CODE]package multadd; /** * * @author Josh */ public class Main { public static void multadd (double a, double b, double c) { System.out.println ( a …

Member Avatar for Yutxz
0
133