Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Can Anyone Solve this for me

Can Anyone Solve this for me

Scheduled Pinned Locked Moved C#
csharp
7 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 8712229
    wrote on last edited by
    #1

    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).

    L A E S V 5 Replies Last reply
    0
    • U User 8712229

      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).

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • U User 8712229

        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).

        A Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #3

        Homework!

        1 Reply Last reply
        0
        • U User 8712229

          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).

          E Offline
          E Offline
          egenis
          wrote on last edited by
          #4

          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...

          P 1 Reply Last reply
          0
          • E egenis

            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...

            P Offline
            P Offline
            Peter_in_2780
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • U User 8712229

              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).

              S Offline
              S Offline
              Subin Mavunkal
              wrote on last edited by
              #6

              ;P ;P ;P ;P ;P ;P ;P

              1 Reply Last reply
              0
              • U User 8712229

                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).

                V Offline
                V Offline
                Vipin_Arora
                wrote on last edited by
                #7

                start doing yourself...if u got any difficulty at any point.... then u can ask the question. Happy Coding :)

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups