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...
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
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...
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...
C++ Code Writing prompt: Grade Calculation: Write a program that asks the user to enter in...
C++ Code Writing prompt: Grade Calculation: Write a program that asks the user to enter in a number greater than or equal to zero and less than or equal to 100. If they do not you should alert them and end the program. Next, determine the letter grade associated with the number. For example, A is any grade between 90 and 100. Report the letter grade to the user.
C++ code Inventory Item Stack You are writing an Inventory program that will allow the user...
C++ code Inventory Item Stack You are writing an Inventory program that will allow the user to enter a part into the inventory, take a part from the inventory, or quit. You are provided with the InvItem class (InvItem.h) and a partial Driver.cpp. You will be creating a DynamicStack class that should implement a Stack data structure. The DynamicClass should be implemented as a template class to allow any data type be added/removed from the stack. You will submit three...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT