Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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