Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

of the floating point numbers to the screen. Use as few variables as possible. (

ID: 3855462 • Letter: O

Question

of the floating point numbers to the screen. Use as few variables as possible. (a) We have discussed several vulnerabilities to reading input strings- add a comment in your program that explains how a string can be used as an enhanced security measure to read input. The comments will be graded). 3) PE 08 03 (ASCII Character Set) Write a program that displays the character and integer values of the ASCII Character Set from 33 to 126. Your program should include a loop that starts at 33, increments by one and ends at 126. Use the printf conversion specifiers Xc and d for characters and decimal integers, respectively. Display exactly five columns in a neat tabular format as illustrated below ASCII CHARACTER SET 33 52 71 G 90 z 109 3453 72 H 91 110 35.# 54.6 73 .1 92 _ 111-0 36-S 55-7 74 . J 93.] 112 . p 37- 56-8 75 . K 94.^ 113 . q 38&57 9 76 L 95114 r 3958 77M96 40 5978 N 97 -a 116 t 4160 79 98 b 117-u 42= * 61.. 80-p 99-c 118-v 43-6281100 d 119w 4463 82 R 101 120 x 456483 102 f 121y 115 4665 A 84T103 g 122z 47 48 o 66 B 85 U 104h 123 67 C 86 V 105i 124 49 1 68 D 87W 106125 50 2 69 E 88 107 126 51-3 1- G 51 3 91 111o Page 23 LO6.paf Practice-n.o5.pat T2.Review Sheot.por MacBook Air 80 888 F 4 5 7 8 9

Explanation / Answer

#include <stdio.h>
int main()
{
int start, end, cols;
int a[100];

start=33;
end=126;
cols=5;//no.of columns

const int count = end - start + 1;
const int rows = 19;//no.of rows

printf(" ASCII CHARACTER SET");
printf(" ");

for ( int i = 0, first = start; i < rows; i++, first++ ) {
for ( int j = first; j <= end; j += rows ){
printf("%5d=%c",j,j);
}
printf(" ");
}
}