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. Java
  4. Need urgent help in assignment of JAVA, any idea suggestion plz

Need urgent help in assignment of JAVA, any idea suggestion plz

Scheduled Pinned Locked Moved Java
javahelptutorialquestion
9 Posts 4 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.
  • A Offline
    A Offline
    aesthetic crazy
    wrote on last edited by
    #1

    Need urgent help in assignment of JAVA, any idea suggestion plz I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following. m not at advance level of programming. i already have the initial part of my assignment completed which is to make a simple command line calculator. this is the next part. The program should take function definitions and those definitions can be used in future expressions for eg: def add(x,y)=(x+y) >>> ok def inv(x)=1/x >>> ok inv(add(2,2)) >>> ans : 0.25 Also four additional commands: show; to prints all de?nitions on screen save flename; to save all defnitions in a fle load flename; to load all definitions from a fle delete funname; to delete the defnition corresponding to the function named funname

    L D J 3 Replies Last reply
    0
    • A aesthetic crazy

      Need urgent help in assignment of JAVA, any idea suggestion plz I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following. m not at advance level of programming. i already have the initial part of my assignment completed which is to make a simple command line calculator. this is the next part. The program should take function definitions and those definitions can be used in future expressions for eg: def add(x,y)=(x+y) >>> ok def inv(x)=1/x >>> ok inv(add(2,2)) >>> ans : 0.25 Also four additional commands: show; to prints all de?nitions on screen save flename; to save all defnitions in a fle load flename; to load all definitions from a fle delete funname; to delete the defnition corresponding to the function named funname

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

      See here[^] for information on how to write Java programs. Please do not expect other people to write your assignment for you, unless you are prepared to pay royalties from your future earnings.

      Just say 'NO' to evaluated arguments for diadic functions! Ash

      1 Reply Last reply
      0
      • A aesthetic crazy

        Need urgent help in assignment of JAVA, any idea suggestion plz I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following. m not at advance level of programming. i already have the initial part of my assignment completed which is to make a simple command line calculator. this is the next part. The program should take function definitions and those definitions can be used in future expressions for eg: def add(x,y)=(x+y) >>> ok def inv(x)=1/x >>> ok inv(add(2,2)) >>> ans : 0.25 Also four additional commands: show; to prints all de?nitions on screen save flename; to save all defnitions in a fle load flename; to load all definitions from a fle delete funname; to delete the defnition corresponding to the function named funname

        D Offline
        D Offline
        David Skelly
        wrote on last edited by
        #3

        I'm a little confused. You say this is a Java assignment, but the example you have posted looks more like Python to me, not Java. Am I missing something?

        A 1 Reply Last reply
        0
        • D David Skelly

          I'm a little confused. You say this is a Java assignment, but the example you have posted looks more like Python to me, not Java. Am I missing something?

          A Offline
          A Offline
          aesthetic crazy
          wrote on last edited by
          #4

          no, this is a JAVA assignment.

          D 1 Reply Last reply
          0
          • A aesthetic crazy

            no, this is a JAVA assignment.

            D Offline
            D Offline
            David Skelly
            wrote on last edited by
            #5

            So the assignment is to rewrite the Python example in Java, is that right?

            A 1 Reply Last reply
            0
            • A aesthetic crazy

              Need urgent help in assignment of JAVA, any idea suggestion plz I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following. m not at advance level of programming. i already have the initial part of my assignment completed which is to make a simple command line calculator. this is the next part. The program should take function definitions and those definitions can be used in future expressions for eg: def add(x,y)=(x+y) >>> ok def inv(x)=1/x >>> ok inv(add(2,2)) >>> ans : 0.25 Also four additional commands: show; to prints all de?nitions on screen save flename; to save all defnitions in a fle load flename; to load all definitions from a fle delete funname; to delete the defnition corresponding to the function named funname

              J Offline
              J Offline
              jschell
              wrote on last edited by
              #6

              aesthetic.crazy wrote:

              I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following

              You need the following parts 1. Something to read the input that the user types. 2. Something to parse each line into a command and OPTIONAL values since some commands do not have values. 3. Something to process EACH command. Write a method for each command. 4. AFTER you have the above parts and you have TESTED them, then you put them together to create the final program.

              A 1 Reply Last reply
              0
              • D David Skelly

                So the assignment is to rewrite the Python example in Java, is that right?

                A Offline
                A Offline
                aesthetic crazy
                wrote on last edited by
                #7

                bro, no we dont know any python. but htis is our assignment in java only.

                1 Reply Last reply
                0
                • J jschell

                  aesthetic.crazy wrote:

                  I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following

                  You need the following parts 1. Something to read the input that the user types. 2. Something to parse each line into a command and OPTIONAL values since some commands do not have values. 3. Something to process EACH command. Write a method for each command. 4. AFTER you have the above parts and you have TESTED them, then you put them together to create the final program.

                  A Offline
                  A Offline
                  aesthetic crazy
                  wrote on last edited by
                  #8

                  what is processing in the third part? i need to know some idea about how to proceed further after parsing.

                  J 1 Reply Last reply
                  0
                  • A aesthetic crazy

                    what is processing in the third part? i need to know some idea about how to proceed further after parsing.

                    J Offline
                    J Offline
                    jschell
                    wrote on last edited by
                    #9

                    Actually I misunderstood part of the assignment. It is quite a bit more complicated than I thought although what I said applies for the easy part. In terms of that you would create a method called something like Show() which would display the current defs. The hard part is the def command. You can do that with groovy in java. But it requires that you do java and groovy which is rather significant for a beginning assignment. Even the management of that without the actual call semantics is complicated.

                    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