Question: This lab focuses on software development (using any programming language you'd like) that converts user input values to 1's and 2's comp notation. C programming
This lab focuses on software development (using any programming language you'd like) that converts user input integer values to l's and 2's comp notation Program characteristics: 1. The program can be executed using the RPi terminal window interface or any other development environment 2. The program should begin by asking the user to enter an integer value. This value could be positive or negative 3. Next, the program should ask the user the number of bits in the Binary value, for example 3-bit, 4-bit, 16-bit, etc. The input from the user should be a positive integer value. 4. Program output: (a) The program should notify the user if an overflow occurs. An overflow occurs when the decimal value does not fit within the max/min (magnitude) range of the l's comp and 2's comp Binary mumber size (b) If an overflow occurs, the program should notify the user and end the program. (c) Otherwise, if no overflow occurs, the program should notify the user that no overflow occurs and display the l's comp and 2's comp Binary (in the specified bit size). Deliverables (in a single text document lab report): 1. Describe your approach to this lab. List any problems that you've encountered and how you overcame these issues 2. Copy and paste all program source code into the lab report. 3. Video (separate file) of your program execution with overflow and non-overflow results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
