ached below the

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question

Attached below the question!. Go ahead. 

 

QUESTION 26
Given:
vector <int> mag = ( 78,107, 37, 102, 37, 120, 121, 122, 105, 106, 115, 121, 37, 120, 102, 126, 120, 37, 121, 109, 106, 126,
37,102,119,106, 37,115, 116, 121, 37,102,107,119, 102, 110, 105, 37, 116, 107, 37, 104, 116, 105, 110, 115, 108, 49, 37,121,
109, 106, 126, 37, 102, 119, 106, 37, 106, 110, 121, 109, 106, 119, 37,113, 126, 110, 115, 108, 37, 116, 119, 37, 102, 37,72,116,
114, 106, 121,51);
Write a program in C++ that takes the msg vector above and displays them as characters. Next, repeat this process, and subtract 5 from each item in the msg vector before converting to character.
Turn in your program and the output. Cutting and pasting your code and screen output into the essay box is perfectly fine.
Transcribed Image Text:QUESTION 26 Given: vector <int> mag = ( 78,107, 37, 102, 37, 120, 121, 122, 105, 106, 115, 121, 37, 120, 102, 126, 120, 37, 121, 109, 106, 126, 37,102,119,106, 37,115, 116, 121, 37,102,107,119, 102, 110, 105, 37, 116, 107, 37, 104, 116, 105, 110, 115, 108, 49, 37,121, 109, 106, 126, 37, 102, 119, 106, 37, 106, 110, 121, 109, 106, 119, 37,113, 126, 110, 115, 108, 37, 116, 119, 37, 102, 37,72,116, 114, 106, 121,51); Write a program in C++ that takes the msg vector above and displays them as characters. Next, repeat this process, and subtract 5 from each item in the msg vector before converting to character. Turn in your program and the output. Cutting and pasting your code and screen output into the essay box is perfectly fine.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Research
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr