(a) Write a C++ program that creates a two-dimensional array or table of characters. The number of rows and number of columns of the array or table should be 15. Fill the array or table with random characters from a to z, and display the array or table of the characters in the console. Search the array or table for counting the number of each character and locate the position where the each character is stored. Generate a text file that contains the array or table of the characters, the number of each character, and the indexes where the each character is stored, for example, a repeats 3 times at (1,2), (2,3), (3,3) c repeats 2 times at (2,2), (5,5) so on. (b) Write/modify (the) program that reads the file created in Part(a) with exception handling and creates a new up-dated text file after removing all the vowels

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...
icon
Related questions
Question
C++ program Please write comments
### Question 1

#### Part (a)

Write a C++ program that creates a two-dimensional array or table of characters.

- The number of rows and the number of columns of the array or table should be 15.
- Fill the array or table with random characters from 'a' to 'z', and display the array or table of the characters in the console.
- Search the array or table for counting the number of each character and locate the position where each character is stored.
- Generate a text file that contains the array or table of characters, the number of each character, and the indexes where each character is stored, for example:

```
a repeats 3 times at (1,2), (2,3), (3,3)
c repeats 2 times at (2,2), (5,5)
```
So on.

#### Part (b)

Write or modify the program that reads the file created in Part (a) with exception handling and creates a new updated text file after removing all the vowels.

---

In this task, you will:
1. Create a 2D array in C++.
2. Populate the array with random lowercase alphabetical characters.
3. Iterate through the array to count the frequency of each character and identify their locations.
4. Export the details to a text file.
5. Implement functionality to read back the file, handle any possible exceptions, and produce a new file with all vowels removed.

This exercise covers multiple areas of programming including arrays, file I/O, exception handling, and string manipulations.
Transcribed Image Text:### Question 1 #### Part (a) Write a C++ program that creates a two-dimensional array or table of characters. - The number of rows and the number of columns of the array or table should be 15. - Fill the array or table with random characters from 'a' to 'z', and display the array or table of the characters in the console. - Search the array or table for counting the number of each character and locate the position where each character is stored. - Generate a text file that contains the array or table of characters, the number of each character, and the indexes where each character is stored, for example: ``` a repeats 3 times at (1,2), (2,3), (3,3) c repeats 2 times at (2,2), (5,5) ``` So on. #### Part (b) Write or modify the program that reads the file created in Part (a) with exception handling and creates a new updated text file after removing all the vowels. --- In this task, you will: 1. Create a 2D array in C++. 2. Populate the array with random lowercase alphabetical characters. 3. Iterate through the array to count the frequency of each character and identify their locations. 4. Export the details to a text file. 5. Implement functionality to read back the file, handle any possible exceptions, and produce a new file with all vowels removed. This exercise covers multiple areas of programming including arrays, file I/O, exception handling, and string manipulations.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
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