6. Average Number of Words you a If have downloaded the source code from the Computer Scier file named text.txt in the Chapter 08 folder. The text that is in sentence per line. Write a program that reads the file's contents and number of words per sentence. (You can access the Computer Science Portal at www.pearsonhighe

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
100%
lent. For example, if the user enters 555-GET-FOOD, the application should display
the original translated to their numeric equiva-
555-438-3663.
6. Average Number of Words
have downloaded the source code from the Computer Science Portal
you
you will find
If
a file named text.txt in the Chapter 08 folder. The text that is in the file is stored as one
sentence per line. Write a program that reads the file's contents and calculates the average
number of words per sentence.
(You can access the Computer Science Portal at www.pearsonhighered.com/gaddis.)
7. Character Analysis
If you have downloaded the source code you will find a file named text.txt in the Chapter 08
folder. Write a program that reads the file's contents and determines the following:
• The number of uppercase letters in the file
• The number of lowercase letters in the file
• The number of digits in the file
• The number of whitespace characters in the file
8. Sentence Capitalizer
Write a program with a function that accepts a string as an argument and returns a copy
of the string with the first character of each sentence capitalized. For instance, if the argu-
ment is "hello. my name is Joe. what is your name?" the function should return the string
"Hello. My name is Joe. What is your name?" The program should let the user enter
a string and then pass it to the function. The modified string should be displayed.
9. Vowels and Consonants
Transcribed Image Text:lent. For example, if the user enters 555-GET-FOOD, the application should display the original translated to their numeric equiva- 555-438-3663. 6. Average Number of Words have downloaded the source code from the Computer Science Portal you you will find If a file named text.txt in the Chapter 08 folder. The text that is in the file is stored as one sentence per line. Write a program that reads the file's contents and calculates the average number of words per sentence. (You can access the Computer Science Portal at www.pearsonhighered.com/gaddis.) 7. Character Analysis If you have downloaded the source code you will find a file named text.txt in the Chapter 08 folder. Write a program that reads the file's contents and determines the following: • The number of uppercase letters in the file • The number of lowercase letters in the file • The number of digits in the file • The number of whitespace characters in the file 8. Sentence Capitalizer Write a program with a function that accepts a string as an argument and returns a copy of the string with the first character of each sentence capitalized. For instance, if the argu- ment is "hello. my name is Joe. what is your name?" the function should return the string "Hello. My name is Joe. What is your name?" The program should let the user enter a string and then pass it to the function. The modified string should be displayed. 9. Vowels and Consonants
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

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