Data Representation in Computer Systems

1/2
Lab 1
eagleonline.hccs.edu/courses/220919/assignments/4770457
Lab 1: Data Representation in Computer Systems
Description:
Create a small program in the language of your preference that receives 2 parameters:
Parameter 1: one ASCII character.
Parameter 2: another ASCII character.
The ASCII table that you must follow is the one displayed in
Table 2.7 on our textbook:
ASCII table image
The program needs to convert from ASCII to binary. Then, it should perform one of the
following operations:
Signed binary adding operation.

2/2
Unsigned binary substraction operation (using two’s complement arithmetic).
Unsigned binary multiplication.
Unsigned binary division.
Finally, show the operation and results
exactly as follows:
Insert an ASCII character: A
The binary for A is 01000001.
Insert another ASCII character:
a
The binary code for a is 01100001.
Insert the operator for the desired operation: + (adding), – (substraction), *
(multiplication), / (division):
+
——————-
Results resume:
——————-
ASCII #1: A | Binary representation: 01000001.
ASCII #2: a | Binary representation: 01100001.
Operation selected: + (adding).
Binary result: 10100010.
Decimal result: 162.
Hex result: A2.
————————————————————————————-
———-
You may use a graphic interface or just a console (terminal) application. Either or is
accepted.
Submission:
You must send
only one file called binary_calculator_lastName that will contain the
source code (Java, Python, C++, PHP, etc) of your entire program. No libraries or import
modules are allowed.

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top