CSE 322 Summer 2018 Lab 5

June 11, 2018

Task 1 (Exercise 6.8)

Write a program to display a “?”, read two capital letters, and display them on the next line In alphabetical order.

//Code

To Be Done By Students

Task 2 (Exercise 6.9)

Write a program to display the extended ASCII characters (ASCII codes 80h to FFh). Display 10 characters per line, separated by blanks.

//Code

To Be Done By Students

Task 3 (Exercise 6.10)

Write a program that will prompt the user to enter a hex digit character (“0″·… “9” or “A” … “F”), display it on the next line in decimal, and ask the user if he or she wants to do it again. If the user types “y” or “Y”, the ·program repeats; If the user types
anything else, the program terminates. If the user enters an illegal character, prompt the user to try again.
Sample execution:
1-1
2-2
A-10
F-15
x-i
z-i
a-i

//Code

To Be Done By Students

Leave a Reply