Question: Create a file named Test1.java. In this file, create a program that prompts the user to enter a double for the balance of their

Create a file named Test1.java. In this file, create a program that prompts the user to enter a double for the balance of their bank account, as well as a boolean asking whether to display their status. If the user does not wish to display their status, display Your status will not be displayed. If the user wishes to display their balance and the balance is below 0, display Your account is negative. If the user wishes to display their balance and the balance is at 0 or above, display Your account is positive or zero. Some example runs are displayed below: Please enter your bank balance: 500 Do you wish to display your status? (true/false): false Your status will not be displayed. Please enter your bank balance: 500 Do you wish to display your status? (true/false): true Your account is positive or zero. Please enter your bank balance: -525.5 Do you wish to display your status? (true/false): true Your account is negative.
Step by Step Solution
There are 3 Steps involved in it
Code import javautilScanner public class Test1 publ... View full answer
Get step-by-step solutions from verified subject matter experts
