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 / C++ / MFC
  4. Calculate using functions? [modified]

Calculate using functions? [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 6 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.
  • M Offline
    M Offline
    MoboTech
    wrote on last edited by
    #1

    I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007

    T K J D 4 Replies Last reply
    0
    • M MoboTech

      I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      imagine what the forum would become if every of your classmates were asking for help about this homework... :zzz:


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      H 1 Reply Last reply
      0
      • T toxcct

        imagine what the forum would become if every of your classmates were asking for help about this homework... :zzz:


        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        They are in the class or different classes?;)

        1 Reply Last reply
        0
        • M MoboTech

          I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007

          K Offline
          K Offline
          KarstenK
          wrote on last edited by
          #4

          I guess: int GetEasterDay(int Year){/*Do compute*/} int GetEasterMonth(int Year){/*Do compute*/} He wants that you make some homeworks. I think thats really OK :-O Please read an beginner book about programming like "C++ for Dummies". This give you an overview.:rolleyes:

          Greetings from Germany

          M 1 Reply Last reply
          0
          • K KarstenK

            I guess: int GetEasterDay(int Year){/*Do compute*/} int GetEasterMonth(int Year){/*Do compute*/} He wants that you make some homeworks. I think thats really OK :-O Please read an beginner book about programming like "C++ for Dummies". This give you an overview.:rolleyes:

            Greetings from Germany

            M Offline
            M Offline
            MoboTech
            wrote on last edited by
            #5

            Thank you.

            1 Reply Last reply
            0
            • M MoboTech

              I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007

              J Offline
              J Offline
              Jonathan Darka
              wrote on last edited by
              #6

              What are you doing taking a class (presume it's programming) when you can even be bothered using google or buying a book and learning a few things yourself ? How can you not know what a function is ? ANY basic book/webpage will tell you this.


              Jonathan Wilkes Darka[Xanya.net]

              1 Reply Last reply
              0
              • M MoboTech

                I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                MoboTech wrote:

                ...it will show the month and day of Easter of that year.

                Since Easter occurs at some point between late March and late April each year, and it follows the cycle of the moon, how are you calculating this? Of course, tables up to 2020 (and possibly beyond) do exist.


                "A good athlete is the result of a good and worthy opponent." - David Crow

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                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