Can Anyone Solve this for me
-
Q5: Write a C# program that inputs three numbers and then prints them out in ascending order. The valid range for each number is [0, 100]. Your program should have two user-defined methods: the first is to input and validate the number (it is called three times) and the second is to determine the proper order of the numbers. The methods headers should resemble: public static int GetNumber() - prompts the user for an integer and ensures that it is between 0 and 100 (use a dowhile loop) public static void OrderNumbers(ref int num1, ref int num2, ref int num3) - upon entry num1, num2, num3 contain the values input by the user - upon completion num1 will hold smallest value, num2 will hold the second smallest value, and num3 will hold the largest value (use a selection statement). The Main method will output the results (after the method OrderNumbers has been called).
-
Q5: Write a C# program that inputs three numbers and then prints them out in ascending order. The valid range for each number is [0, 100]. Your program should have two user-defined methods: the first is to input and validate the number (it is called three times) and the second is to determine the proper order of the numbers. The methods headers should resemble: public static int GetNumber() - prompts the user for an integer and ensures that it is between 0 and 100 (use a dowhile loop) public static void OrderNumbers(ref int num1, ref int num2, ref int num3) - upon entry num1, num2, num3 contain the values input by the user - upon completion num1 will hold smallest value, num2 will hold the second smallest value, and num3 will hold the largest value (use a selection statement). The Main method will output the results (after the method OrderNumbers has been called).
So the thing that you have to ask yourself is: How much are you willing to pay for someone to do your homework for you? No one here is going to do your homework. If you have a specific question we are here to help.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
-
Q5: Write a C# program that inputs three numbers and then prints them out in ascending order. The valid range for each number is [0, 100]. Your program should have two user-defined methods: the first is to input and validate the number (it is called three times) and the second is to determine the proper order of the numbers. The methods headers should resemble: public static int GetNumber() - prompts the user for an integer and ensures that it is between 0 and 100 (use a dowhile loop) public static void OrderNumbers(ref int num1, ref int num2, ref int num3) - upon entry num1, num2, num3 contain the values input by the user - upon completion num1 will hold smallest value, num2 will hold the second smallest value, and num3 will hold the largest value (use a selection statement). The Main method will output the results (after the method OrderNumbers has been called).
-
Q5: Write a C# program that inputs three numbers and then prints them out in ascending order. The valid range for each number is [0, 100]. Your program should have two user-defined methods: the first is to input and validate the number (it is called three times) and the second is to determine the proper order of the numbers. The methods headers should resemble: public static int GetNumber() - prompts the user for an integer and ensures that it is between 0 and 100 (use a dowhile loop) public static void OrderNumbers(ref int num1, ref int num2, ref int num3) - upon entry num1, num2, num3 contain the values input by the user - upon completion num1 will hold smallest value, num2 will hold the second smallest value, and num3 will hold the largest value (use a selection statement). The Main method will output the results (after the method OrderNumbers has been called).
You need to ask this in the Homework thread. There is a dedicated team of programmers sitting there to answer any homework related questions. The first 30 minutes are free, then after that, there is a nminal fee involved, can't recall now how much though...
-
You need to ask this in the Homework thread. There is a dedicated team of programmers sitting there to answer any homework related questions. The first 30 minutes are free, then after that, there is a nminal fee involved, can't recall now how much though...
Exercise 1. Find the Homework forum on CP. Submit your paypal account details. When you receive the confirmation email, cut'n'paste the following question... ;P ;P ;P Peter
Software rusts. Simon Stephenson, ca 1994.
-
Q5: Write a C# program that inputs three numbers and then prints them out in ascending order. The valid range for each number is [0, 100]. Your program should have two user-defined methods: the first is to input and validate the number (it is called three times) and the second is to determine the proper order of the numbers. The methods headers should resemble: public static int GetNumber() - prompts the user for an integer and ensures that it is between 0 and 100 (use a dowhile loop) public static void OrderNumbers(ref int num1, ref int num2, ref int num3) - upon entry num1, num2, num3 contain the values input by the user - upon completion num1 will hold smallest value, num2 will hold the second smallest value, and num3 will hold the largest value (use a selection statement). The Main method will output the results (after the method OrderNumbers has been called).
;P ;P ;P ;P ;P ;P ;P
-
Q5: Write a C# program that inputs three numbers and then prints them out in ascending order. The valid range for each number is [0, 100]. Your program should have two user-defined methods: the first is to input and validate the number (it is called three times) and the second is to determine the proper order of the numbers. The methods headers should resemble: public static int GetNumber() - prompts the user for an integer and ensures that it is between 0 and 100 (use a dowhile loop) public static void OrderNumbers(ref int num1, ref int num2, ref int num3) - upon entry num1, num2, num3 contain the values input by the user - upon completion num1 will hold smallest value, num2 will hold the second smallest value, and num3 will hold the largest value (use a selection statement). The Main method will output the results (after the method OrderNumbers has been called).
start doing yourself...if u got any difficulty at any point.... then u can ask the question. Happy Coding :)