Main topics: User validated input
Basic String Methods
if & if – else Statements
Loop Statements
Program Specication:
Write a Java program that emulates a simple calculator:
Declare and initialize a String variable (bitstring) to “”
Declare and initialize an int variable (base10) to 0
Repeat the following until the ( Exit ) option is selected:
1. Display a menu which gives the user the choice of thefollowing menu options:
0 -> Concatenate a 0
1 -> Concatenate a 1
2 -> Exit
and uses a user validation loop to read their response into aString variable.
Note: You must repeatedly get the users response until
it is exactly one of the characters 0 1 2
2.
PayPal Gateway not configured
PayPal Gateway not configured