import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
boolean running = true;
Scanner scanner = new Scanner(System.in);
System.out.println("===============================");
System.out.println(" M E N U ");
System.out.println("=============================\n");
System.out.println("Compute for:");
System.out.println("[1] Daily");
System.out.println("[2] Monthly");
System.out.println("[3] Annually");
System.out.println("[4] Exit Program");
System.out.println("\nPlease enter a choice: ");
int choice = scanner.nextInt();
switch (choice) {
case 1:
daily(getbalance(),getinterest());
break;
case 2:
System.out.println(monthly(getbalance(),getinterest()));
break;
case 3:
System.out.println(annual(getbalance(),getinterest()));
break;
case 4:
System.out.println("Program quitting...");
System.exit(1);
break;
default:
System.out.println("Invalid input! Restarting program\n\n\n\n\n\n\n");
}
}
static double getbalance() {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter Balance: ");
double balance = scanner.nextDouble();
return balance;
}
static double getinterest() {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter Interest in % : ");
double interest = scanner.nextDouble();
return interest / 1000;
}
static void daily(double bal, double inter) {
}
static double annual(double bal, double inter) {
return bal;
}
static double monthly(double bal, double inter) {
return bal;
}
}