Ill go from there, thanks - Ill update if any other questions.
Type: Posts; User: Famous112
Ill go from there, thanks - Ill update if any other questions.
Pretty much the same questions.. i need some guidance on what i should do next
I Updated the code... - Error message is gone after i changed something, i realized i had methods inside my main method.
Code is updated to the most recent that i have - in the Main post
Couldnt figure out where to post this... So here i am.
I need help figuring out what to do next.
this is suppose to be a calculator that works with the current value, basically keeping the...
import java.util.Scanner;
public class CaluclatorWithMethods {
// main method
public static void main(String[] args) {
// input scanner
Scanner stdIn = new Scanner(System.in);
int...
I am getting a good amount of errors... i think i really am overthinking this... I got put into a lower level programming class , I dont use java... I work with python...
Ill take another look,...
Ive changed it alittle now...
import java.util.Scanner;
public class CaluclatorWithMethods {
public static void main(String[] args) {
System.out.println(" Menu: ");...
Working on an assignment for school, cant figure out what i need to do to move on in this project...
We are suppose to implement these exact methods into my calculator program.
public...
They are incorrectly placed? This is so confusing D:
--- Update ---
Figured it out, Thank you guys !!!! :D
I did, But when it runs, it wont end if the user enters " 6 " from what i implemented to exit the program.
Changed the question! Now i need to figure out how to allow it to terminate? it just keeps looping.. D:
Would a while (true) Loop work if i wanted to terminate the program after 3 incorrect inputs? I'm trying to figure out how i could do that.
Ill look at the Try-catch block. this is all still so...
Hi, I am currently building a Menu driven calculator, and i have got my loop to go, but now when the user enters " 6 " from the menu - the program does not terminate. How can i get this to end?
I...
It worked!!!
Thank you!!!! :)
I have an if statement for it. Its just not working.
My current if statement:
if ( menuNumber == 4) {
System.out.println ("what is the first number?:")
int number1 = input.nextInt ();...
Sorry, I guess that was unclear. I mean the program itself is working. As everything else I need it to do.
But. I need to figure out how to get it to display " I'm sorry, you cannot divide by...
[ SOLVED ]
So, I'm trying to have the program display " You can not divide by zero " When the user divides by zero. ive read my book that i have ( purchased from school) - And i cant figure it...