1/2Lab 1eagleonline.hccs.edu/courses/220919/assignments/4770457Lab 1: Data Representation in Computer SystemsDescription:Create a small program in the language of your preference that...







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.




Detailed instruction is attached




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. https://eagleonline.hccs.edu/courses/220919/assignments/4770457 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. TABLE 2.7 The ASCII Code (Values Given in Decimal) 0 NUL [16 DLE [32 48 064 @|80 P [96 ~ [112 p 1 SOH [17 DC1 [33 | (49 165 A [81 Q|97 a [113 q 2 STX |18 DC2 |34 " |50 2|66 B [82 R|98 b |114 r 3 ETX [19 DC3 [35 # [51 3(67 C |83 S [99 «c [115 s 4 EOT [20 DC4 [36 $ |52 4|68 D |84 T [100 d [116 t 5 ENQ |21 NAK |37 % |53 5|69 E |85 u [101 e |117 wu 6 ACK |22 SYN |38 & |54 6|70 F (86 V |102 f |118 v 7 BEL (23 ETB [39 * [55 7 (71 G |87 w [103 g [119 w 8 BS 24 CAN (40 ( [56 872 H |88 X [104 h [120 x 9 HT 25 EM [41 ) [57 973 1 |89 Y [105 i [121 y 10 LF 26 SUB [42 * [58 74 « 90 z (106 i [122 z 1 VT 27 ESC [43 + [59 ; [75 K |91 [ [107 k [123 { 12 FF 28 FS 44 * [60 <|[76 l="" [92="" 108="" 1="" [124="" |="" 13="" cr="" |29="" gs="" [45="" -="" |61="" —|77="" m="" [93="" ]="" |109="" m|125="" }="" 14="" so="" 30="" rs="" |46="" 62="">[78 N |94 = [110 n [126 ~ 15 SI 31 US |47 / |63 ?2|79 O [95 111 0 [127 DEL
Mar 06, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here