Question

In: Computer Science

Discuss the importance of planning out a program on paper before writing the actual code, and...

Discuss the importance of planning out a program on paper before writing the actual code, and why there are advantages to doing it this way.

300 words

Solutions

Expert Solution

Importance of writing code on paper before writing actual code are as follows:-

* Many times programming problems require us to deduce formula to find the answer. Which can be done easily on a paper .

* When we write pseudo code on paper we need not to worry about the syntax thus we can focus more on the problem. But when we code on computer we see syntax errors highlighted which can distract us from focusing on solution and thus reduce efficiency.

*Many bugs are solved on the paper itself which saves the time of compiling the code and then looking for error.

* When you plan program on a paper you can also make flow charts for the program. Making flow charts reduces the time of understanding the program. Thus the chances of error also gets reduced.

* On paper you can dry run the code and confirm if the code gives correct output for the given inputs. And make correction in code if needed. Dry running code gives better understanding of the program.

Why there are advantages of writing code on paper?

* The efficiency is highly increased, because while planning program on paper you do focus on only one thing.

* The screen time is reduced. You don't have to face computer screen which can effect yours eyes.

* After planning whole program on paper when you write the final code on computer, it takes less time than without planing on paper. It is because in this case you need not to think about the program, you can code with your typing speed.

-------------

Consider giving thumbs up you are satisfied with the answer


Related Solutions

Discuss the importance of planning out a program on paper before writing the actual code, and...
Discuss the importance of planning out a program on paper before writing the actual code, and why there are advantages to doing it this way. 300 words
In python make a simple code. You are writing a code for a program that converts...
In python make a simple code. You are writing a code for a program that converts Celsius and Fahrenheit degrees together. The program should first ask the user in which unit they are entering the temperature degree (c or C for Celcius, and f or F for Fahrenheit). Then it should ask for the temperature and call the proper function to do the conversion and display the result in another unit. It should display the result with a proper message....
Discuss the importance of appropriate and adequate insurance in financial planning.
Discuss the importance of appropriate and adequate insurance in financial planning.
Discuss the importance of the planner/client relationship in event planning.
Discuss the importance of the planner/client relationship in event planning.
write this program in java... don't forget to put comments. You are writing code for a...
write this program in java... don't forget to put comments. You are writing code for a calendar app, and need to determine the end time of a meeting. Write a method that takes a String for a time in H:MM or HH:MM format (the program must accept times that look like 9:21, 10:52, and 09:35) and prints the time 25 minutes later. For example, if the user enters 9:21 the method should output 9:46 and if the user enters 10:52...
Business Ethics Briefly discuss the importance, purpose and difference between Code of Ethics and Code of...
Business Ethics Briefly discuss the importance, purpose and difference between Code of Ethics and Code of Conduct. Address the issues in creating of Code of Ethics with reference to procedures in implementation of it in an Organization in Oman. Instructions: ·       Word limits are minimum 350 and maximum 500 words. ·       All content should be write in your own words. No Copy and paste allowed. ·       Plagiarism should less than 20%. ·       Students should do individually. ·       Last date of submission is on Moodle by...
Before writing his paper, Sheldon asks himself the following questions: Who are my readers? What are...
Before writing his paper, Sheldon asks himself the following questions: Who are my readers? What are their expectations? Where will they be reading my paper? When will they be reading? How will they be reading it – on paper or on a screen? What is Sheldon figuring out for his paper? 1- an extended reader profile 2- a brief reader profile 3- a hierarchy of needs 4- a reader analysis worksheet
Writing a Java Code Requirements of the JAVA program: Your task is to calculate geometric area...
Writing a Java Code Requirements of the JAVA program: Your task is to calculate geometric area for 3 shapes(square, rectangle and circle). You need to build a menu that allows users to enter options. Possible options are 'S' for square, 'R' for rectangle and 'C' for circle. HINT: you can use switch statement to switch on string input Invalid input should throw a message for the user. Example: Invalid input, please try again Each options should ask users for relevant...
TEXT ONLY PLEASE (PLEASE NO PDF OR WRITING) C++ CODE Instructions Write a program that implements...
TEXT ONLY PLEASE (PLEASE NO PDF OR WRITING) C++ CODE Instructions Write a program that implements the algorithm given in Example 1 - 3 (Chapter 1), which determines the monthly wages of a salesperson. The instructions for Example 1 - 3have been posted below for your convenience. Example 1 - 3 Every salesperson has a base salary. The salesperson also receives a bonus at the end of each month, based on the following criteria: If the salesperson has been with...
Program #1: You will be writing code for several different examples of conditional execution. Each example...
Program #1: You will be writing code for several different examples of conditional execution. Each example should be written as a unique method. Each method should include a method header. So the basic outline of your code is: public class Branching { /** * This is an example method header. Notice how it's multi-line and written * using college-level English and not fragments - this is for the Human to * read and not the compiler to parse, so be...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT