Write a C# function called CompareNumbers to compare two numbers and return a code that indicates their relationship

Need help to solve this

Write a C# function called CompareNumbers to compare two numbers and

return a code that indicates their relationship: 0 if they are equal, 1 if the first number is larger, and -1 if the first number is smaller. Your main module should prompt the user for the two numbers and pass them to the function. The result is printed in your main module.

The output should look like this (note that it should work for any values that are input; these are just examples).

Enter a number: 10
Enter a number: 21
10 is smaller than 21

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Write a C# function called calcArea to calculate and return the area of a rectangle.

<p>Write a C# function called calcArea to calculate and return the area of a rectangle. Your main module

should prompt the user for the length and width and pass them to the function. The answer is printed in your main module. <br /><br />The output should look like this (note that it should work for any values that are input; these are just examples).  <br /><br /><br />Enter length: 10<br />Enter width: 5<br />Rectangle length 10 and width 5 has area 50<br />Press any key to continue . . . (

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Describe the differences between Session State Variables, Application variables, Cookies, and URL encoding.

.) Describe the differences between Session State Variables, Application variables, Cookies, and URL encoding.

Give example code of URLs with query strings and statements that retrieve the values of query string attributes.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Consider the execution of the following for loop. If the last value printed is 5, which of the following might have been used for increment?

This question was created from Week 3 https://www.coursehero.com/file/13559097/Week-3/

13559097-39279.jpeg

Consider the execution of the following for loop. If the last value printed is 5, which of the following might have been used for increment? for (int x = 1; x < 5; increment ) cout << x + 1 << endl; (Points : 3) ++x x++ x+=1 x=x+1 Any of the above would work.

13559097-39279.jpeg

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"