Classroom Manager: Android Program submitted
Design an Android application to keep track of the following information:
- Teacher name
- Room number
- Classroom helper
- Number of students
Refer to the previous code concerning reading in Text.
Design a class Classroom that has four member variables to keep track of the teacher name, room number, classroom helper, and number of students. Use appropriate data types.
Add each Classroom item to an ArrayList of Classroom data:
ArrayList<Classroom> arrayList = new ArrayList<>();
arrayList.add(new Classroom("Jane Doe", 102, "Jon Smith", 23));
If the number of students in the classroom is less than 0 or greater than 100, use a Toast to let the user know that such values are not allowed:
Toast toast = Toast.makeText(MainActivity.this, "Good work", Toast.LENGTH_LONG);Do not add the Classroom information to the ArrayList if the number of students is less than 0 or greater than 100.
After each run of the program, use setText("") on the EditText element to clear the previously entered data.
Display a summary of the Classroom info in a TextView on the Activity. The exact wording of the summary is up to you.
Show me on Discord that you've completed this assignment before 1/23/22.