Your contribution can guide someone’s learning journey. Share your
documents today.
Table of Contents Introduction...........................................................................................................................................2 Problem Explanation.............................................................................................................................2 Benefits of Using Binary Arithmetic System..........................................................................................2 Application............................................................................................................................................2 Flowchart...............................................................................................................................................3 Algorithm:..............................................................................................................................................4 Test on Input-1......................................................................................................................................5 Trace Table -1....................................................................................................................................6 Test on Input-2......................................................................................................................................7 Trace Table -2....................................................................................................................................8 Conclusion...........................................................................................................................................10 Contribution of Group Member..........................................................................................................10 References...........................................................................................................................................10 Page1of10
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Introduction This report analyses and mentions the importance of binary number system and its preference over other number systems. The Binary number system comprises of only 1’s and 0’s. The main challenge arises when neither the computer nor a human being can understand each other’s language and hence the high-level language is converted to binary code. This task is basically carried out by the ALU and the CPU. The user input data is split into small units. Further arithmetic operations on the data are carried out. Binary operators like addition, Subtraction, Multiplication, and division split the data into categories namely real number and imaginary numbers which are further useful for actual period activities namely animation, image processing and many more. Problem Explanation A machine understands only the binary number system but on the contrary it is also true that a machine is human instructed device and without an actual mediation between the human code and a binary number system, the machine would be of no use to the mankind as there would be many errors. Thus, after the conversion of human code to binary code, the processing of this binary code by many binary arithmetic operators is needed. Thus, the binary number system is the base of any machine and is important to run real time tasks on the machine. Benefits of Using Binary Arithmetic System The benefits of using a binary arithmetic number system are. Wide range of resources on the internet and library, which are easily accessible. As binary number system us widely used overall electronic devices, we can analyse its uses and its importance by ourselves. It is one of the familiar topics, so information collection becomes easy and effective. Application A simple algorithm is developed which is used for adding two numbers. The flow chart of the algorithm is provided below. A random variable is taken to store the carry. The addition of the number goes on from right to left. Page2of10
Flowchart Figure1: Flowchart to demonstrate the flow of application. Page3of10
Algorithm: Binary Addition: caseA+BSumCarry 10+000 20+110 31+010 41+101 In the 4thcase, the binary addition of (1+1=10).So,0 is written in the given column and a carry of 1 over to the next column. 1.Start 2.Take inputs in two numbers A and B from the user. 3.Add the digits from left to right. i.If Sum > 1, ii.Store the carry, and 4.If carry = 1 i.Add carry to next bit. 5.Repeat the above steps 3 and 4. i.If there is no digit smaller number, then. ii.Use 0 for it. 6.If the carry is greater than 0 (carry>0), then. i.Append the result to the carry. 7.Display the Added number 8.End Binary Subtraction: A-BSubtractBorrow 0-000 0-111(borrow 1, resulting in -1 carried over) 1-010 1-100 1.Start 2.Take inputs in two numbers A and B from the user. 3.Subtract the digits from left to right. i.If digit of first number = 0, ii.Borrow = 10, and 4.If borrow = 10 i.Next bit = 0. 5.Repeat the above steps 3 and 4. i.If there is no digit smaller number, then. ii.Use 0 for it. 6.Display the subtracted number. 7.End Page4of10
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Binary Multiplication: A*BMultiplication 0*00 0*10 1*00 1*11 1.Start 2.Take inputs in two numbers A and B from the user. 3.Multiply every bit of B first with one bit of A (start the digits from left to right). i.If both the bits are 1, ii.Multiplication=1, and 4.Repeat the above step 3 until every bit of A is unreached. i.Use the subtraction algorithm to subtract the digits of all levels. 5.Display the subtracted number (multiplies number) 6.End Binary Division: A÷BDivision 0÷0Meaningless 0÷10 1÷0Meaningless 1÷11 1.Start 2.Take inputs in two numbers A and B from the user. 3.Divide B with the A (start the digits from right to left). i.If both the bits are 1, ii.Division=1, and iii.If A=0 and B=1, then iv.Division=0 v.Else, it is meaningless. 4.Repeat the above step 3 until every bit of A is unreached. i.Use the subtraction algorithm to subtract the digits of all levels. 5.Display the division number as the output. 6.End Test on Input-1 Binary Addition: Step 1: Input numbers are 100 and 010. Step 2: 0 + 0 = 0 Step 3: 0 + 1 = 1 Page5of10
Step 4.1: Remainder: 0 Step 5: 01/11 = 0 Step 5.1: Remainder: 1 Step 4: Append 1 with 1,1,0 Step 5: The output is: 1110 Trace Table -2 StepsOperationRemainderAnswerOutput 1---- 2101/1111- 3100/1111- 411/1101 501/1110 6Append 1 with 1,1,0-1110- 7---1110 Conclusion The binary number framework has a significant part in the improvement of innovation. The working of the PC is conceivable with binary numbers. Binary system is utilized in numerous fields like information security, programming advancement, correspondence, and some more.To do what they need to do, computers require many transistors, but binary numbers made it simpler and less costly. It requires the least amount of circuitry, which means it takes up the least amount of space, consumes the least amount of energy, and costs the least amount of money. It also ensures security and dependability.Having a look and working on this task our comprehension of the binary number framework has expanded and we got comfortable with the calculation and stream diagram. With this task research, we came to find out about the historical backdrop of the binary number. Contribution of Group Member <NAME OF MEMBER> - He is honest to his work. Working with him gives me the immense pleasure as he is hard-working and more prone to find the solution to the problem. It is easy to communicate with him when needed during the application report development. <NAME OF MEMBER> - The explanation done to the introduction and theoretical part of this assignment is justified by <NAME>. He is honest and hard-working member of the group with appropriate knowledge while developing the application of binary number system. References Brown, B. (2000). Binary Arithmetic. Computer Science Department Southern Polytechnic State University. Grossman, P. (2008). Discrete mathematics for computing. .Macmillan International Higher Education. Harris, P. (2018). What are binary and hexadecimal numbers? .New York: PowerKids Press. Roberts, E. (2016). Binary Arithmetic and Digital Logic.. Retrieved from web.stanford.edu Page10of10