Question: Create Java programs for the following activities. Simulate a tally counter that can be used to admit a limited number of people. First, the limit
Create Java programs for the following activities.

Simulate a tally counter that can be used to admit a limited number of people. First, the limit is set with a call: public void setLimit (int maximum) If the count button was clicked more often than the limit, simulate an alarm by printing out a message "Limit exceeded. Create the Tally Counter class Create an appropriate Constructor in the class Include a limit instance variable Include a setLimit method Include an admitPerson method Create a Demo Program Display an intro message explaining what the program does and name of the programmer Create an object of type TallyCounter Call the setLimit method admit several people until the limit is exceeded
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
