Question
Your task is to use those same variable(s) declared and initialized in Task 1( related to my last posted question ) and display the value(s)
Your task is to use those same variable(s) declared and initialized in Task 1(related to my last posted question) and display the value(s) to the user via a message box. Use the same language that you used in Task 1. Show the code that is used to show both the count of members in your group and their names. Taking a look further at the example code in Task 1, we could do something like this to display the student number and name stored in numberStudents and student1, respectively: MessageBox.Show(numberStudents.ToString()); MessageBox.Show(student1); Let's break this code down a bit. Taking a look at the first line, MessageBox.Show(numberStudents.ToString());, this will display a popup window to the user with the value of 1. Later, in one of the development classes taught here, you will learn more about the Show method of the MessageBox class. The second line, MessageBox.Show(student1);, will display in a popup box the text John Doe to the user.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started