import java.util.Scanner;
class newDeviceFund
{
//instance variables
double balance;
double goal;
double difference;
double amount;
//constructors
newDeviceFund(double bal, double gol)
{
balance = bal;
goal = gol;
difference = gol - bal;
}
//methods
double getBalance()
{
return balance;
}
void deposit(double amt)
{
amount = amt;
Scanner scan = new Scanner(System.in);
System.out.println("How much is your deposit? $");
amount = scan.nextDouble();
balance = balance + amount;
}
void allInfo()
{
System.out.println("Balance: $" + balance + "\nGoal: $" + goal + "\nYou have $" + difference + " to go!");
}
}
class newDevice
{
public static void main(String[] args)
{
String device;
String numChoice;
newDeviceFund grouper = new newDeviceFund(0, 199);
newDeviceFund manta = new newDeviceFund(0, 399);
grouper.deposit();
/*System.out.println("Type device codename");
Scanner choice = new Scanner(System.in);
device = choice.nextLine();
if (device.equals("grouper"))
System.out.println("Press 1 to deposit \nPress 2 to view stats on account");
Scanner num = new Scanner(System.in);
numChoice = num.nextLine();
if (numChoice.equals("1"))
grouper.deposit();
if (numChoice.equals("2"))
grouper.allInfo();
if (device.equals("manta"))
System.out.println("Press 1 to deposit \nPress 2 to view stats on account");
Scanner next = new Scanner(System.in);
numChoice = num.nextLine();
if (numChoice.equals("1"))
manta.deposit();
if (numChoice.equals("2"))
manta.allInfo();
*/
}
}