C++ Please read the txt below: Character[ ] = Frequency[ 7060 ] # space character Character[ ! ] = Frequency[ 14 ] Character[ " ] = Frequency[ 46 ] Character[ # ] = Frequency[ 0 ] Character[ $ ] = Frequency[ 2 ] Character[ % ] = Frequency[ 0 ] Character[ & ] = Frequency[ 0 ] Character[ ' ] = Frequency[ 53 ] Character[ ( ] = Frequency[ 17 ] Character[ ) ] = Frequency[ 16 ] Character[ * ] = Frequency[ 0 ] Character[ + ] = Frequency[ 0 ] Character[ , ] = Frequency[ 372 ] Character[ - ] = Frequency[ 31 ] Character[ . ] = Frequency[ 271 ] Character[ / ] = Frequency[ 9 ] Character[ 0 ] = Frequency[ 80 ] Character[ 1 ] = Frequency[ 33 ] Character[ 2 ] = Frequency[ 18 ] Character[ 3 ] = Frequency[ 3 ] Character[ 4 ] = Frequency[ 10 ] Character[ 5 ] = Frequency[ 18 ] Character[ 6 ] = Frequency[ 3 ] Character[ 7 ] = Frequency[ 0 ] Character[ 8 ] = Frequency[ 1 ] Character[ 9 ] = Frequency[ 2 ] Character[ : ] = Frequency[ 9 ] Character[ ; ] = Frequency[ 50 ] Character[ < ] = Frequency[ 0 ] Character[ = ] = Frequency[ 0 ] Character[ > ] = Frequency[ 0 ] Character[ ? ] = Frequency[ 49 ] Character[ @ ] = Frequency[ 0 ] Character[ A ] = Frequency[ 40 ] Character[ B ] = Frequency[ 34 ] Character[ C ] = Frequency[ 8 ] Character[ D ] = Frequency[ 5 ] Character[ E ] = Frequency[ 14 ] Character[ F ] = Frequency[ 10 ] Character[ G ] = Frequency[ 1 ] Character[ H ] = Frequency[ 20 ] Character[ I ] = Frequency[ 144 ] Character[ J ] = Frequency[ 2 ] Character[ K ] = Frequency[ 1 ] Character[ L ] = Frequency[ 15 ] Character[ M ] = Frequency[ 8 ] Character[ N ] = Frequency[ 15 ] Character[ O ] = Frequency[ 9 ] Character[ P ] = Frequency[ 15 ] Character[ Q ] = Frequency[ 0 ] Character[ R ] = Frequency[ 8 ] Character[ S ] = Frequency[ 14 ] Character[ T ] = Frequency[ 76 ] Character[ U ] = Frequency[ 5 ] Character[ V ] = Frequency[ 4 ] Character[ W ] = Frequency[ 58 ] Character[ X ] = Frequency[ 0 ] Character[ Y ] = Frequency[ 10 ] Character[ Z ] = Frequency[ 0 ] Character[ [ ] = Frequency[ 0 ] Character[ \ ] = Frequency[ 0 ] Character[ ] ] = Frequency[ 0 ] Character[ ^ ] = Frequency[ 0 ] Character[ _ ] = Frequency[ 0 ] Character[ ` ] = Frequency[ 0 ] Character[ a ] = Frequency[ 2475 ] Character[ b ] = Frequency[ 420 ] Character[ c ] = Frequency[ 985 ] Character[ d ] = Frequency[ 857 ] Character[ e ] = Frequency[ 3587 ] Character[ f ] = Frequency[ 644 ] Character[ g ] = Frequency[ 525 ] Character[ h ] = Frequency[ 1675 ] Character[ i ] = Frequency[ 2127 ] Character[ j ] = Frequency[ 23 ] Character[ k ] = Frequency[ 184 ] Character[ l ] = Frequency[ 1407 ] Character[ m ] = Frequency[ 911 ] Character[ n ] = Frequency[ 1953 ] Character[ o ] = Frequency[ 2419 ] Character[ p ] = Frequency[ 531 ] Character[ q ] = Frequency[ 42 ] Character[ r ] = Frequency[ 1592 ] Character[ s ] = Frequency[ 1938 ] Character[ t ] = Frequency[ 2968 ] Character[ u ] = Frequency[ 874 ] Character[ v ] = Frequency[ 292 ] Character[ w ] = Frequency[ 605 ] Character[ x ] = Frequency[ 58 ] Character[ y ] = Frequency[ 612 ] Character[ z ] = Frequency[ 45 ] Character[ { ] = Frequency[ 0 ] Character[ | ] = Frequency[ 0 ] Character[ } ] = Frequency[ 0 ] Character[ ~ ] = Frequency[ 0 ] Character[  ] = Frequency[ 0 ] Character[ € ] = Frequency[ 0 ] The output should be store in tuple : tuple tletter with char is A, B, C, …. int is the number of frequency string will be 010101 (binary equivalence)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

C++

Please read the txt below:

Character[ ] = Frequency[ 7060 ] # space character
Character[ ! ] = Frequency[ 14 ]
Character[ " ] = Frequency[ 46 ]
Character[ # ] = Frequency[ 0 ]
Character[ $ ] = Frequency[ 2 ]
Character[ % ] = Frequency[ 0 ]
Character[ & ] = Frequency[ 0 ]
Character[ ' ] = Frequency[ 53 ]
Character[ ( ] = Frequency[ 17 ]
Character[ ) ] = Frequency[ 16 ]
Character[ * ] = Frequency[ 0 ]
Character[ + ] = Frequency[ 0 ]
Character[ , ] = Frequency[ 372 ]
Character[ - ] = Frequency[ 31 ]
Character[ . ] = Frequency[ 271 ]
Character[ / ] = Frequency[ 9 ]
Character[ 0 ] = Frequency[ 80 ]
Character[ 1 ] = Frequency[ 33 ]
Character[ 2 ] = Frequency[ 18 ]
Character[ 3 ] = Frequency[ 3 ]
Character[ 4 ] = Frequency[ 10 ]
Character[ 5 ] = Frequency[ 18 ]
Character[ 6 ] = Frequency[ 3 ]
Character[ 7 ] = Frequency[ 0 ]
Character[ 8 ] = Frequency[ 1 ]
Character[ 9 ] = Frequency[ 2 ]
Character[ : ] = Frequency[ 9 ]
Character[ ; ] = Frequency[ 50 ]
Character[ < ] = Frequency[ 0 ]
Character[ = ] = Frequency[ 0 ]
Character[ > ] = Frequency[ 0 ]
Character[ ? ] = Frequency[ 49 ]
Character[ @ ] = Frequency[ 0 ]
Character[ A ] = Frequency[ 40 ]
Character[ B ] = Frequency[ 34 ]
Character[ C ] = Frequency[ 8 ]
Character[ D ] = Frequency[ 5 ]
Character[ E ] = Frequency[ 14 ]
Character[ F ] = Frequency[ 10 ]
Character[ G ] = Frequency[ 1 ]
Character[ H ] = Frequency[ 20 ]
Character[ I ] = Frequency[ 144 ]
Character[ J ] = Frequency[ 2 ]
Character[ K ] = Frequency[ 1 ]
Character[ L ] = Frequency[ 15 ]
Character[ M ] = Frequency[ 8 ]
Character[ N ] = Frequency[ 15 ]
Character[ O ] = Frequency[ 9 ]
Character[ P ] = Frequency[ 15 ]
Character[ Q ] = Frequency[ 0 ]
Character[ R ] = Frequency[ 8 ]
Character[ S ] = Frequency[ 14 ]
Character[ T ] = Frequency[ 76 ]
Character[ U ] = Frequency[ 5 ]
Character[ V ] = Frequency[ 4 ]
Character[ W ] = Frequency[ 58 ]
Character[ X ] = Frequency[ 0 ]
Character[ Y ] = Frequency[ 10 ]
Character[ Z ] = Frequency[ 0 ]
Character[ [ ] = Frequency[ 0 ]
Character[ \ ] = Frequency[ 0 ]
Character[ ] ] = Frequency[ 0 ]
Character[ ^ ] = Frequency[ 0 ]
Character[ _ ] = Frequency[ 0 ]
Character[ ` ] = Frequency[ 0 ]
Character[ a ] = Frequency[ 2475 ]
Character[ b ] = Frequency[ 420 ]
Character[ c ] = Frequency[ 985 ]
Character[ d ] = Frequency[ 857 ]
Character[ e ] = Frequency[ 3587 ]
Character[ f ] = Frequency[ 644 ]
Character[ g ] = Frequency[ 525 ]
Character[ h ] = Frequency[ 1675 ]
Character[ i ] = Frequency[ 2127 ]
Character[ j ] = Frequency[ 23 ]
Character[ k ] = Frequency[ 184 ]
Character[ l ] = Frequency[ 1407 ]
Character[ m ] = Frequency[ 911 ]
Character[ n ] = Frequency[ 1953 ]
Character[ o ] = Frequency[ 2419 ]
Character[ p ] = Frequency[ 531 ]
Character[ q ] = Frequency[ 42 ]
Character[ r ] = Frequency[ 1592 ]
Character[ s ] = Frequency[ 1938 ]
Character[ t ] = Frequency[ 2968 ]
Character[ u ] = Frequency[ 874 ]
Character[ v ] = Frequency[ 292 ]
Character[ w ] = Frequency[ 605 ]
Character[ x ] = Frequency[ 58 ]
Character[ y ] = Frequency[ 612 ]
Character[ z ] = Frequency[ 45 ]
Character[ { ] = Frequency[ 0 ]
Character[ | ] = Frequency[ 0 ]
Character[ } ] = Frequency[ 0 ]
Character[ ~ ] = Frequency[ 0 ]
Character[  ] = Frequency[ 0 ]
Character[ € ] = Frequency[ 0 ]

The output should be store in tuple : tuple<char,int,string> tletter

with char is A, B, C, ….

int is the number of frequency

string will be 010101 (binary equivalence)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
User Defined DataType
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education