Question: please help me solving this question in C++ a. 4) (15 points) Characters, ASCII, and Strings: Your goal in this code is to print: Dr.
please help me solving this question in C++

a. 4) (15 points) Characters, ASCII, and Strings: Your goal in this code is to print: Dr. Bob that is D, r, period, space, B, o, b. However, you are to follow these exact rules: For the first character (capital D), define it as a constant char you can call this chl or charl something to remind yourself that it goes in the first slot. b. Declare 6 char variables - you can name them ch2-ch7 or char2-char7 again, something that represents that they are characters and where they go c. For the 3rd, 5th, and 7th letters/symbols above assign the character using single quotes (for example, char5 = 'B') d. For the 2nd, 4th, and 6th letters/symbols look the letter up in ASCII and set the character equal to the corresponding number (for example, char2=114) e. Use cout to display all of the letters in order. f. Finally, declare a string variable and set it equal to the entire string and display that as well. (e.g. string name = Dr. Bob;)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
