Question: Write a Console App update the four people's ages. Write a method to print four ages. Use Pascal Case to write a descriptive name for
Write a Console App update the four people's ages.
Write a method to print four ages.
- Use Pascal Case to write a descriptive name for a method to print four ages
- Method accepts 4 ages as parameters, you determine the data type and if pass by value or by reference
- Determine the return type for the method
- Write a print statement to print the 4 ages (with enough information for the user to understand the output)
- Add a comment in the method stating if method is pass by reference or pass by value and why
- Add a comment in the method body to explain the return type you selected
Write ONE method only to update the four people's ages.
- Use Pascal Case to write a descriptive name for a method to update ages
- Method accepts 4 ages as parameters, you determine the data type and if pass by value or by reference
- Determine the return type for the method
- Use the increment operator in the method
- Add a comment in the method stating if method is pass by reference or pass by value and why
- Add a comment in the method body to explain the return type you selected
In the Main() method
- Declare 4 variable representing the ages of 4 people, selecting appropriate data types, names and following naming conventions
- Make a method call to print the ages
- Make a method call to update the ages
- Make a method call to print the ages
This is C# programming language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
