Hi I need help with creating a program that handles various mathematical calculations. When the program must have a SPLASH SCREEN and MAIN MENU screen displayed:
Splash screeN: name of the. Calculator
Main Menu: 1 Arithmetic Calculator
2 Area calculator
3 volume calculator
4 help
I am really confused on how to start it as I am new to java I am still trying to adjust to it and the rules. Please help and guide me. Here is my code so far but it has error on the readLine();
[ import java.util.Scanner;
class Calcultor {
public static void main(String[]args){
int userChoice;
Scanner keyboard= new Scanner(System.in);
System.out.print("enter calculator choice");
userChoice= keyboard.nextInt();
switch(userChoice){
case 1:
System.out.println("arithmeticCalculator");
break;
case 2:
System.out.println("areaCalculator");
break;
case 3:
System.out.println("volumeCalculator");
break;
}
static int arithmeticCalculator(){ *// this where the error starts don't know what causes it
int num1= Integer.parseInt(readLine);
int num2= Integer.parseInt(readLine);
Srting operation= readLine(); *//this is where the error ends help me fix it please
if (operation.equals("+"))
return num1 + num2;
else if(operation.equals("-"))
return num1 - num2
else
return 0;
.Your assistance will be appreciated thank you :?: