Question
Write a PYTHON program to read through a file and build a histogram using a dictionary to count occurrence of words in the file. Output
Write a PYTHON program to read through a file and build a histogram using a dictionary to count occurrence of words in the file. Output should display word and it's occurrences.
The file given to use is called "ClassObjectives.txt".
Below is what is in the txt file:
Course Objectives:
By the end of the class, students will be able to:
a. Identify basic programming concepts. b. Demonstrate and understand the basic building blocks of a program. c. Describe program development lifecycle. d. Demonstrate a basic understanding and uses of Machine, Assembly, High-Level, Database,Scripting and Web Page Programming languages. e. Use primitive data types and data structures offered by the development environment. f. Choose an appropriate data structure for modeling a simple problem. g. Write simple applications that relate to a specific domain. h. Design, implement, test, and debug a program that uses each of the following fundamentalprogramming constructs: basic computation, simple I/O, standard conditional and iterative structures,and the definition of functions. i. Test applications with sample data. j. Apply core program control structures. k. Create simple web pages using HTML and CSS. l. Create simple databases using SQL.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started