(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
(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...
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9b4e3f5e-c418-473e-98f7-80dfb1b9a99b%2F59881834-d717-4ca5-b8cf-b4b135263596%2Fndnzill_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY