- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
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: …
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; …
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 …
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 …
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, …
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.
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 …
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 …
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?
The End.
doomsday1216