QUESTION 26 Given: vector 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 convertng to character. Turn in your program and the output. Cutting and pasting your code and screen output into the essay box is perfectly fine.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Question

Attached below

**QUESTION 26**

**Given:**

```cpp
vector<int> msg = { 78, 107, 37, 120, 37, 102, 37, 120, 121, 122, 105, 106, 115, 121, 37, 120, 102, 126, 120, 37, 121, 109, 106, 126,
37, 102, 113, 106, 37, 115, 116, 121, 37, 102, 207, 119, 102, 110, 105, 37, 116, 107, 37, 104, 126, 106, 110, 115, 102, 109, 106, 107,
109, 106, 126, 37, 102, 119, 106, 37, 106, 110, 120, 109, 106, 119, 37, 113, 126, 120, 115, 102, 109, 106, 110, 115, 109, 37, 100, 37,
114, 106, 121, 31 };
```

**Task:**

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 characters. 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:** ```cpp vector<int> msg = { 78, 107, 37, 120, 37, 102, 37, 120, 121, 122, 105, 106, 115, 121, 37, 120, 102, 126, 120, 37, 121, 109, 106, 126, 37, 102, 113, 106, 37, 115, 116, 121, 37, 102, 207, 119, 102, 110, 105, 37, 116, 107, 37, 104, 126, 106, 110, 115, 102, 109, 106, 107, 109, 106, 126, 37, 102, 119, 106, 37, 106, 110, 120, 109, 106, 119, 37, 113, 126, 120, 115, 102, 109, 106, 110, 115, 109, 37, 100, 37, 114, 106, 121, 31 }; ``` **Task:** 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 characters. Turn in your program and the output. Cutting and pasting your code and screen output into the essay box is perfectly fine.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY