Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ I need to open a text file with the name of the text file entered by the user, read each line seperately, then read

C++

I need to open a text file with the name of the text file entered by the user, read each line seperately, then read each character in the line tally how many times the the character appears, then write the character and count of how many times the character appears in the line to an output file. Then read the next line in the text file and write the characters & count to a different output file, reapeat this process until all lines of the text file are read. I also need to make sure the letters whether 'A' or 'a' are counted as 'a'. I believe I need to use arrays, getline and ifstream and ofstream.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

=+3. Identify and define the three key aspects of job training.

Answered: 1 week ago