Question: Output the characters that map to the ASCII codes 32 through 126. You will need a loop to iterate through the input values and output
Output the characters that map to the ASCII codes 32 through 126. You will need a loop to iterate through the input values and output the corresponding character.
Your program will be reading in two unsigned integer values.
The prompt for read will be:
Enter lower and upper values
Check that both values are in the range of 32 to 126. If the values are less than 32 or greater than 126 you need to display the message:
Values must be in range 32 to 126 inclusive
Also display the above message if the first value read in is larger than the second value.
If the values are invalid you need to reread the values with the prompt.
Enter lower and upper values
Keep reading in values, checking if they are valid and displaying an error message until the values read in are valid. You can use a while or do while loop to do this.
Once you have valid input values you need to display the values as characters with 16 characters per line of output. To output an integer value as a character you must either store the integer value in a char, unsigned char, or you need to cast the integer value to a char, or unsigned char.
The first and last lines of output need to be:
----+----+----+-
Note that each of the + characters represents a column that is a multiple of 5.
So for input values of:
32 126
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
To solve this problem you will write a program that repeatedly prompts the user for two integer values It will ensure these values are within the vali... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
609ab10b57a1f_30893.pdf
180 KBs PDF File
609ab10b57a1f_30893.docx
120 KBs Word File
