Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASCII stands for American Standard Code for InformationInterchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such

ASCII stands for American Standard Code for InformationInterchange.
Computers can only understand numbers, so an ASCII code is the numerical
representation of a character such as 'a', 'A', '1', '@', etc.
In this question, we limit ourselves to capital letters. Thefollowing table represents the
ASCII code of capital letters, i.e. from ā€˜Aā€™ to ā€˜Zā€™.
ASCII Letter
65 A
66 B
67 C
68 D
69 E
70 F
71 G
72 H
73 I
74 J
75 K
76 L
77 M
78 N
79 O
80 P
81 Q
82 R
83 S
84 T
85 U
86 V
87 W
88 X
89 Y
90 Z
Write a C++ program that takes as input an integer that contains 6digits, splits it into
three numbers of 2 digits each. For each number, it looks up theabove ASCII table and
returns the character that corresponds to this number. For example, if the user enters
859086 then the program must display UZV. This is because U corresponds to 85, Z
corresponds to 90, and V corresponds to 86. If a number is not in the table then the
program displays the + sign instead. For example, if the user enters 859011 then the
program must output UZ+. This is because 11 is not in the abovetable.
Note: You must use the concept of functions. Use pointers torepresent strings of
characters. Further, the library c-string functions cannot be usedin the solution of
this problem.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Performance Engineering 10th European Workshop Epew 2013 Venice Italy September 17 2013 Proceedings

Authors: Maria Simonetta Balsamo ,William Knottenbelt ,Andrea Marin

2013 Edition

3642407242, 978-3642407246

More Books

Students also viewed these Programming questions