Question: 1.Write a program that prompts the user to enter a character, and in subsequent lines prints its ASCII code in binary and the number of

1.Write a program that prompts the user to enter a character, and in subsequent lines prints its ASCII code in binary and the number of 1 bit in its ASCII code.

2. Write a program that prompts the user to type a hex number of four hex digits or less, and outputs it in binary on the next line. If the user enters an illegal character, he or she should be prompted to begin again. Accept only uppercase letters. Your program may ignore any input beyond four characters.

Do both codes in emu 8086 assembly language and share the output screenshots.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!