0

Java 18.2

Help You create an automatic telephone system for the bank's customers. The selected digits should activate the following actions as follows: 1 => Выбор языка 2 => Customer support 3 => Check account balance 4 => Check loan balance 0 => Exit You can use the first 4 commands in random sequence without interrupting a phone call that will interrupt only the number 0. Write a program that will continuously accept the number as input and display the corresponding message until the client enters 0.

24th Apr 2021, 9:03 PM
Igaman Igaman
Igaman Igaman - avatar
4 ответов
24th Apr 2021, 10:01 PM
TOLUENE
TOLUENE - avatar
0
Example of input data 1 4 3 0 Example of output data Language selection Check the balance of the loan Check the balance Exit
24th Apr 2021, 9:03 PM
Igaman Igaman
Igaman Igaman - avatar
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int number; int x = 1; do { System.out.println(x++); } while(number != 0); if (number=0) System.out.println("Exit"); else if (number=1) System.out.println("Language selection" else if (number=2) System.out.println("Customer Customer") else if (number=3) System.out.println("Check the balance" else if (number=4) System.out.println("Check loan balance" } }
24th Apr 2021, 9:04 PM
Igaman Igaman
Igaman Igaman - avatar
0
Wow!!!!thank friend , comments amazing!!
24th Apr 2021, 10:20 PM
Igaman Igaman
Igaman Igaman - avatar