Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

(TCOs 6 and 8) Write a C# function called CompareNumbers to compare two numbers and return a code that indicates their relationship:

Also have multiple choice questions in attachments, please answer!

(TCOs

6 and 8) 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 (Points : 7)

Background image of page 1

Sign

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