Should I major in Computer Science or Writing?

In computer science: reasons for writing methods?

  • in computer science whats the reason for writing methods? give a couple of reasons if you got more then one plz make it clear and easy nd not to much detail and no complicated words lol

  • Answer:

    To simplify the code, if you need to do certain operations multiple times, you will put them in a method which you can call whenever you need to execute these operations. For example you can write a method called "lowestNum" which finds the lowest of 3 numbers and every time you need to find the lowest of 3 numbers in your main method you can call the lowestNum method to do the job, instead of copying the same operators over and over to do the job. If you need more help just google it. You can find plenty of programming stuff in internet.

Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Who told you taking a cs course was easy? Read the textbook!

Code reuse. If you're going to execute the same code repeatedly, write it once, so you only have to modify it once.

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.