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. solve this question

solve this question

Scheduled Pinned Locked Moved C#
question
16 Posts 11 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 6623435
    wrote on last edited by
    #1

    driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

    N L C A K 8 Replies Last reply
    0
    • U User 6623435

      driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

      N Offline
      N Offline
      nagendrathecoder
      wrote on last edited by
      #2

      why?:confused: Did you tried it?

      U 1 Reply Last reply
      0
      • N nagendrathecoder

        why?:confused: Did you tried it?

        U Offline
        U Offline
        User 6623435
        wrote on last edited by
        #3

        yes :(

        N 1 Reply Last reply
        0
        • U User 6623435

          yes :(

          N Offline
          N Offline
          nagendrathecoder
          wrote on last edited by
          #4

          So, tell us what problems you are facing? You are asking to write whole application which nobody is going to do here. X| If you really don't want to do it then pay someone to do this job.

          C 1 Reply Last reply
          0
          • U User 6623435

            driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

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

            Do your own homework...!!!

            U 1 Reply Last reply
            0
            • L Lost User

              Do your own homework...!!!

              U Offline
              U Offline
              User 6623435
              wrote on last edited by
              #6

              :mad:

              1 Reply Last reply
              0
              • U User 6623435

                driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Here's the problem. The reason you got given homework, was so you could learn. You can do one of two things 1 - try to do it yourself and ask SPECIFIC questions where you're stuck, showing what you've tried, telling us what you read online, telling us exactly where the code doesn't do what you expect, and why 2 - go to your teacher and tell them you're just not smart enough for this course. BTW, your teachers are almost certainly smart enough to google their own question, so the worst thing I could do, is give you a full solution, which they would then find, and use to work out who you are. At that point, they would fail you anyhow.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                R 1 Reply Last reply
                0
                • N nagendrathecoder

                  So, tell us what problems you are facing? You are asking to write whole application which nobody is going to do here. X| If you really don't want to do it then pay someone to do this job.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  5d to counter his one.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  N 1 Reply Last reply
                  0
                  • C Christian Graus

                    5d to counter his one.

                    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                    N Offline
                    N Offline
                    nagendrathecoder
                    wrote on last edited by
                    #9

                    Thanks, do CP has any facility to remove these kind of users. :doh: He is spamming all over the places.

                    L 1 Reply Last reply
                    0
                    • U User 6623435

                      driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

                      A Offline
                      A Offline
                      Arish rivlin
                      wrote on last edited by
                      #10

                      I'm not sure... I think I know the poster for this message personally. If he is the one, I think he cannot implement any thing....

                      1 Reply Last reply
                      0
                      • U User 6623435

                        driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

                        K Offline
                        K Offline
                        Kevin McFarlane
                        wrote on last edited by
                        #11

                        See point 11.[^]

                        Kevin

                        1 Reply Last reply
                        0
                        • U User 6623435

                          driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #12

                          I assume, from the fact that you don't seem to know your arse from your elbow, that going to the toilet proves particularly troublesome for you.

                          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                          My blog | My articles | MoXAML PowerToys | Onyx

                          1 Reply Last reply
                          0
                          • N nagendrathecoder

                            Thanks, do CP has any facility to remove these kind of users. :doh: He is spamming all over the places.

                            L Offline
                            L Offline
                            loyal ginger
                            wrote on last edited by
                            #13

                            CodeProject is a convenient place to get programs for homework assignments. The IT industory is in trouble. I personally knew somebody with no knowledge in software development who was hired by Lexmark in 1998. Another one was hired by UPS without being carefully interviewed. They both had degrees in computer science. Trouble!

                            1 Reply Last reply
                            0
                            • U User 6623435

                              driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

                              B Offline
                              B Offline
                              Bosah Chude
                              wrote on last edited by
                              #14

                              Coders don't work for free. If you want an app try hiring a programmer.

                              www.belfox.net ...Simplicity at its best

                              1 Reply Last reply
                              0
                              • C Christian Graus

                                Here's the problem. The reason you got given homework, was so you could learn. You can do one of two things 1 - try to do it yourself and ask SPECIFIC questions where you're stuck, showing what you've tried, telling us what you read online, telling us exactly where the code doesn't do what you expect, and why 2 - go to your teacher and tell them you're just not smart enough for this course. BTW, your teachers are almost certainly smart enough to google their own question, so the worst thing I could do, is give you a full solution, which they would then find, and use to work out who you are. At that point, they would fail you anyhow.

                                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                                R Offline
                                R Offline
                                ragnaroknrol
                                wrote on last edited by
                                #15

                                I'd like to see how someone here would do this just to compare it to the system we currently have. I bet the code done in an hour here would be better than some of the code currently used by us that was done by a contractor. :/

                                1 Reply Last reply
                                0
                                • U User 6623435

                                  driving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method

                                  R Offline
                                  R Offline
                                  Ravi Sant
                                  wrote on last edited by
                                  #16

                                  You must try first!

                                  ♫ 99 little bugs in the code, 99 bugs in the code We fix a bug, compile it again 101 little bugs in the code ♫

                                  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