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

Write a program in c++ that display the ASCII chart. Display the numeric value a

ID: 3714683 • Letter: W

Question

Write a program in c++ that display the ASCII chart. Display the numeric value as well as the character so that there are four columns and as many rows as it takes.

a program that displays something like this. thanks!

32 20 040 Space! 64 40 100 @ @ | 96 60 ?40 G#96; 33 21 041 ! ! 34 22 042 " rr 35 23 043 # # 36 24 044 $ 37 25 045 % 38 26 046 & G 39 27 047 ' 40 28 050 ( ( 41 29 051 ) ) 42 2A 052 *? 43 2B 053 +: + 44 2C 054 , , 45 2D 055 - ; 46 2E 056 . 68 44 104 D 1100 64 144 d d 72 48 110 H H 1104 68 150 h h 76 4C 114 L L 1108 6C 154 l ï 77 4D 115 M M 1109 6D 155 m m 48 30 060 0 ; 49 31 061 1 50 32 062 2 51 33 063 3: 52 34 064 4 53 35 065 5 54 36 066 6 55 37 067 55; 56 38 070 8 57 39 071 9: 80 50 120 P P |??2 70 ï60 p p 81 51 121 Q Q |113 71 161 q ? 82 52 122 R R |114 72 162 r r 83 53 123 S S |??5 73 163 s s 84 54 124 T T |116 74 164 t t 85 55 125 U U 1117 75 165 u u 86 56 126 V V |??8 76 166 v v 87 57 127 W w 1119 77 167 w w 88 58 130 88; X 1120 78 170 x x 89 59 131 Y Y |?21 79 171 y Y 90 5A 132 Z Z 1122 7A 172 z z 91 5B 133 [ [ 1123 7B 173 { { 92 5C 134 |124 7C 174 | 93 5D 135 ] ] |125 7D 175 } } 94 5E 136 ^ ^ |126 7E 176 ~ 95 5F 137 _ |127 7F 177  DEL 62 3E 076 > > 63 3F 077 ?: ? 34567012345670123456701234567 44444555555556666666677777777 666666666666666677777777777 01234567012345670123456701234567 DEF 44455555555556666 34567012345670123456701234567 44444555555556666666677777777 DEF

Explanation / Answer

#include<iostream>
using namespace std;
int main()
{
   int i=0;
   char c;
   cout<<"Decimal Html Chr ";
   //printing Ascii table
  
   while(i<128)
   {
       c=(char)i;
       //printing values...dec and char...
       cout<<" "<<i<<" &#"<<i<<" "<<c<<" ";
   i++;  
   }
  
}

output:

Decimal Html Chr
0 &#0
1 &#1
2 &#2
3 &#3
4 &#4
5 &#5
6 &#6
7 &#7
8 &#8
9 &#9
10 &#10

11 &#11
12 &#12
13 &#13
14 &#14
15 &#15
16 &#16
17 &#17
18 &#18
19 &#19
20 &#20
21 &#21
22 &#22
23 &#23
24 &#24
25 &#25
26 &#26
27 &#27
28 &#28
29 &#29
30 &#30
31 &#31
32 &#32
33 &#33 !
34 &#34 "
35 &#35 #
36 &#36 $
37 &#37 %
38 &#38 &
39 &#39 '
40 &#40 (
41 &#41 )
42 &#42 *
43 &#43 +
44 &#44 ,
45 &#45 -
46 &#46 .
47 &#47 /
48 &#48 0
49 &#49 1
50 &#50 2
51 &#51 3
52 &#52 4
53 &#53 5
54 &#54 6
55 &#55 7
56 &#56 8
57 &#57 9
58 &#58 :
59 &#59 ;
60 &#60 <
61 &#61 =
62 &#62 >
63 &#63 ?
64 &#64 @
65 &#65 A
66 &#66 B
67 &#67 C
68 &#68 D
69 &#69 E
70 &#70 F
71 &#71 G
72 &#72 H
73 &#73 I
74 &#74 J
75 &#75 K
76 &#76 L
77 &#77 M
78 &#78 N
79 &#79 O
80 &#80 P
81 &#81 Q
82 &#82 R
83 &#83 S
84 &#84 T
85 &#85 U
86 &#86 V
87 &#87 W
88 &#88 X
89 &#89 Y
90 &#90 Z
91 &#91 [
92 &#92
93 &#93 ]
94 &#94 ^
95 &#95 _
96 &#96 `
97 &#97 a
98 &#98 b
99 &#99 c
100 &#100 d
101 &#101 e
102 &#102 f
103 &#103 g
104 &#104 h
105 &#105 i
106 &#106 j
107 &#107 k
108 &#108 l
109 &#109 m
110 &#110 n
111 &#111 o
112 &#112 p
113 &#113 q
114 &#114 r
115 &#115 s
116 &#116 t
117 &#117 u
118 &#118 v
119 &#119 w
120 &#120 x
121 &#121 y
122 &#122 z
123 &#123 {
124 &#124 |
125 &#125 }
126 &#126 ~
127 &#127


Process exited normally.
Press any key to continue . . .

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote