Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a C# program having 5 functions: (1) write a C# function that two parameters named va and vb. The function performs the following operations

image text in transcribed

create a C# program having 5 functions: (1) write a C# function that two parameters named va and vb. The function performs the following operations define two integer variables (named v1 and v2) and initialize them by the values from two parameters - perform the following calculations. For each operation above, if the result is greater than or equal to 100, output the result. Otherwise, only output a message telling the user that the result is less than 100. (2) write a C# function that two parameters named va and vb. The function performs the same operations as that in (1). But, this function will return the value of v2. (3) write a C# function that has two "ref" parameters named va and vb. The function performs the same operations as that in (1). But, this function will return the value of v2. (4) write a C# function that has two "out" parameters named va and vb-The function performs the same operations as that in (1). But, this function will return the value of v2. (5) Write a Main method - call the functions above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions