So when I compile it says i'm missing an if statement at line 38/39 but im using nested else if's and when I take it out it causes more errors.
import java.util.*;
public class lhlBanking
{
static final double servicecharge_savings = 10.00;
static final double servicecharge_checking = 25.00;
static final double Interest_SAVINGS = 0.04;
static final double checkingatmost = 0.03;
static final double checkingatleast = 0.05;
static final double MAX_CHECKING = 5000.00;
public static void main(String[] args)
{
String input;
int C_account;
char T_account;
double mimimum_current_balance_allowed;
double current_current_balance;
Scanner sc = new Scanner(System.in);
System.out.println("Input your account number and select account T_account(savings or checking),"+
"what is the required mimimum_current_balance_allowed current_balance, What is the current current_balance.");
if ((current_balance < mimimum_current_balance_allowed)||(T_account == 'S' || T_account == 's'))
{
current_balance = current_balance - servicecharge_savings;
}
else if(T_account == 'C' || T_account == 'c')
{
current_balance = current_balance - servicecharge_checking;
}
else
{
return;
}
else if
{
if (T_account == 'S' || T_account == 's')
{
current_balance = current_balance + (current_balance * Interest_SAVINGS);
}
}
else if(T_account == 'C' || T_account == 'c')
{
if (current_balance - mimimum_current_balance_allowed < MAX_CHECKING)
{
current_balance = current_balance + (current_balance * checkingatmost);
}
}
else if
{
current_balance = current_balance + (current_balance * checkingatleast);
}
else
{
return;
}
}
}