MANIPULATING VARIABLES review
Wed Sep 14 2022 04:11:09 GMT+0000 (Coordinated Universal Time)
Saved by
@cruz
#javascript
public class BankAccount {
public static void main(String[] args){
double balance = 1000.75;
double amountToWithdraw = 250;
double updatedBalance = balance - amountToWithdraw;
double amountForEachFriend = updatedBalance/3;
boolean canPurchaseTicket = amountForEachFriend >= 250;
System.out.println(canPurchaseTicket);
System.out.println("I gave each friend "+amountForEachFriend+"...");
}
}
content_copyCOPY
Comments