The processData method
Write the code in the method named processData to do the following:
- Get the coach's name from the user as shown in Figure 8.
- Store the
name in a variable of type String named coachesName.
- Display the coach's name for five seconds as shown in Figure 9.
- Get the coach's age from the user as shown in Figure 10.
- Store the
age in a variable of type Number named coachesAge.
- Display the coach's age for five seconds as shown in Figure 11.
Figure 8. Input dialog for coach's name.
Figure 9. Program output for coach's name.
Figure 10. Input dialog for coach's age.
Figure 11. Program output for coach's age.