PYTHON PROGRAMMING Problems: B. Character Counter of BSIT Objectives - Create a class named BsitObjectives - In the class constructor, the file named bsit_objectives.txt will be opened and read. The text file contains the following texts: The Bachelor of Science in Information Technology (BSIT) program aims to produce graduates who can: 1. apply knowledge of utilization of both hardware and software technologies involving planning, installing, customizing, operating, managing and administering, and maintaining information technology infrastructure that provides computing solutions to address the needs of an organization; 2. conduct relevant researches and extension program activities in the field of information technology; 3. promote the development and transfer of appropriate information technology; 4. promote environmental preservation and protection on projects and enterprises related to information technology; and 5. become morally upright IT professionals with primary or secondary job roles.

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

PYTHON PROGRAMMING Problems: B. Character Counter of BSIT Objectives
- Create a class named BsitObjectives
- In the class constructor, the file named bsit_objectives.txt will be opened and read. The text file contains the following texts:
The Bachelor of Science in Information Technology (BSIT) program aims to produce graduates who can:
1. apply knowledge of utilization of both hardware and software technologies involving planning, installing, customizing, operating, managing and administering, and maintaining information technology infrastructure that provides computing solutions to address the needs of an organization;
2. conduct relevant researches and extension program activities in the field of information technology;
3. promote the development and transfer of appropriate information technology;
4. promote environmental preservation and protection on projects and enterprises related to information technology; and
5. become morally upright IT professionals with primary or secondary job roles.

The occurrences of each character will be counted. Here's the hint on how to count each character:
mystr = list("the quick brown fox")
data = {k: mystr.count(k) for k in mystr}
Print a formatted display of the result (in reverse order of the character count) as shown in sample output below:

Character Count:

whitespace = 95
"o" = 71
"n" = 68
"e" = 59
"a" = 52
"i" = 52
"t" = 52
"r" = 48
"s" = 28
"l" = 24
"c" = 22
"g" = 22
"p" = 22
"d" = 22
"m" = 20
"h" = 18
"f" = 16
"u" = 10
"y" = 9
"v" = 8
"." = 6
"w" = 5
newline = 5
"," = 5
"T" = 4
";" = 4
"I" = 3
"z" = 3
"b" = 3
"B" = 2
"S" = 2

"j" = 2
"(" = 1
")" = 1
":" = 1
"1" = 1
"k" = 1
"2" = 1
"x" = 1
"3" = 1
"4" = 1
"5" = 1

Expert Solution
steps

Step by step

Solved in 2 steps

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