Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~2K People Reached
Favorite Forums

9 Posted Topics

Member Avatar for jim.keele.7

What you could do instead of a try-catch is test the input before adding it to the total to see if it is negative, and if it is negative execute getExpenses(); For example, you could do something to this effect (within the body of getIncome) double num; System.out.print("Enter your income: …

Member Avatar for jim.keele.7
0
189
Member Avatar for doomsday1216

This is probably a rather simple problem, I haven't looked at any Java in some time and am having trouble with this. First off, here is my program: it's very simple, because I cant even get past here without getting several errors. On Line 6, it says "unreported exception FileNotFoundException; …

Member Avatar for stultuske
0
132
Member Avatar for doomsday1216

Hi everyone, I've been trying to turn one of my programs into an executable application, but every time I click the jar file or open it using the command prompt nothing happens. I was wondering if I shouldn't be using "System.out.println" and Scanners to take input/display output. I am using …

Member Avatar for JamesCherrill
0
237
Member Avatar for sobias

I'm not sure if this will answer your question, but here goes. As far as visualizing recursion goes look at it like those russian dolls that all fit inside of each other. Each time you call the function, it opens a new "doll" and executes the body until it either …

Member Avatar for doomsday1216
0
184
Member Avatar for doomsday1216

I don't know if this is the right place for a post about Scheme, but i was wondering if anyone knew if there are loops and if statements in Scheme? (I am very new to Scheme, i know there are 'cond' statements, but i don't know if there are if's, …

Member Avatar for sepp2k
0
397
Member Avatar for dayau89

Theres one problem with this program, the DectoHexDec method header is "public static int DectoHexDec(int x)", but then proceeds to return a string, so that needs to be fixed.

Member Avatar for doomsday1216
0
296
Member Avatar for doomsday1216

Hi-- I am new to C++ and am having trouble with this program: The objective is to take input from a file and write it to output, using the '|' character as the delimiter, but displaying it using a comma (ex, if line 1 is "1000|6 1 6 5 3 …

Member Avatar for WaltP
0
171
Member Avatar for ali11

I don't understand the necessity of lines 26-34, if anything it will mess up your count, because you get the number of grades, but increment it again later in your if construct. Also, you must assign a variable to 'grade' after initalization (as has been said already) and you can't …

Member Avatar for Member #647493
0
156
Member Avatar for doomsday1216

I was recently creating a program and trying to convert a string to an int (similarly to Integer.parseInt(x) in java) and wasn't sure if there was a c++ equivalent that i could use?

Member Avatar for mike_2000_17
0
305

The End.