Pseudo code is a detailed yet readable description of what a computer program must do, expressed in a formally-styled natural language rather than in a programming language. Pseudo code is sometimes used as a detailed step in the process of developing a program. It allows designers to express the design in great detail and provides programmers a detailed template for the next step of writing code in a specific programming language. I have chosen to create a pseudo code because I found that this tells the user a step by step process on how to convert decimal to binary or binary to decimal.
A flow chart is a graphical or symbolic representation of a process. Each step in the process is represented by a different symbol and contains a short description of the process step. The flow chart symbols are linked together with arrows showing the process flow direction.
The oval at the top of the program is utilized to indicate the beginning of a program. A diamond flow chart shape indicates a branch in the process flow. Here, the program offers the user a decision of whether to convert decimal to binary or binary to decimal.
If the user chooses decimal to binary, then the program will execute the following:
The user will input a decimal number, which is a parallelogram that indicates data input for a process. The program would then check to see if the decimal number that has been inputted is between 0 and 255. If the decimal number isn’t between 0 and 255, then the program will go back to the previous process (input a decimal number.) The program will then divide the decimal number by 2. The next step would then store the remainders of all the division as binary and the answer is stored as decimal. The program then checks to see if the decimal number is equal to 0. If this isn’t the case, then the program will return to the stage where the decimal number is divided by 2. If the statement is correct, then the program can output all of the remainders from all of the divisions as binary. The following stage outputs binary. The final stage ”end” indicates the end of the program.
If the user chooses binary to decimal, then the program will execute the following:
The user will input a binary number, which is a parallelogram that indicates data input for a process. The program will then check to see if the binary number entered is between 0-8 bits long. If the binary number isn’t between 0-8 bits, then the program will return back to the stage – input binary number. The program then checks to see if the binary number consists of 1s and 0s. If the binary number doesn’t consist of 1s and 0s then then the program will return back to the stage – input binary number.
You May Also Find These Documents Helpful
-
Using the example in Figure 1- 5 and the steps that followed, create a binary conversion for the decimal value 200.…
- 3680 Words
- 20 Pages
Satisfactory Essays -
The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…
- 2338 Words
- 10 Pages
Powerful Essays -
Using the example in Figure 1-5 and the steps that followed, create a binary conversion for the decimal value 200.…
- 814 Words
- 9 Pages
Satisfactory Essays -
1) Numbers can be represented in binary (using 2 symbols 0 and 1) and hexadecimal ( 16 symbols…
- 480 Words
- 2 Pages
Satisfactory Essays -
17.Write a program to read a binary input from the keyboard and display it. Page: 130…
- 582 Words
- 3 Pages
Satisfactory Essays -
Using the example in figure 1-5 and the steps that followed, create a binary conversion for the decimal value 200.…
- 1660 Words
- 7 Pages
Satisfactory Essays -
Up to this point, you have identified the processes the program must perform, but you have not given any consideration to exactly how the processes work together to solve the problem. At this point, you must generate a description of the processing using pseudocode, a natural language description of the processing the application must perform.…
- 453 Words
- 4 Pages
Powerful Essays -
Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.…
- 307 Words
- 2 Pages
Satisfactory Essays -
What is an informal language that has no syntax rules and is not meant to be compiled or executed? Pseudo Code…
- 738 Words
- 3 Pages
Good Essays -
Match the activity or purpose on the left with the appropriate description on the right by typing in the corresponding letter under the Answer column.…
- 264 Words
- 2 Pages
Satisfactory Essays -
1. A flow chart is often used to illustrate the steps involved in the separation of a mixture. Flow…
- 1980 Words
- 8 Pages
Powerful Essays -
is a graphic description of a process, showing the sequence of process tasks, which is developed for a specific purpose and from a selected viewpoint…
- 5424 Words
- 22 Pages
Good Essays -
The program tells us how to multiply the numbers that are put above, e.g. found coins = 20, magic coins =10 and stolen coins =3 which are from lines 1-3 and line 4 shows us a question which consists of those numbers. Line 5 shows us that stolen coins value is now 2 instead of 3 and line7 shows us that magic coins has also changed its value from 10 to 13.…
- 1133 Words
- 6 Pages
Satisfactory Essays -
This course provides students with a basic understanding of programming practices. Concepts covered include flowcharting, pseudocode methodologies, and an understanding of programming practices. Students will learn how these concepts, when properly applied, improve program design.…
- 2760 Words
- 12 Pages
Powerful Essays -
7. The If…Then…Else…End If code allows code to be conditionally executed depending on whether a specified logical condition has been met.…
- 1120 Words
- 5 Pages
Good Essays