subject

Write a program to read a text file. determine if the character is uppercase, lowercase, a digit, or space, and keep a running total of each.

hints

define main() program

declare variables

save the given data file under the same folder as your program file is.

open file

use a for loop to read data and verify with if statement or if/elif statement

print out the total of is uppercase, lowercase, a digit, and space characters in the file

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Write a program to read a text file. determine if the character is uppercase, lowercase, a digit, or...
Questions
question
Computers and Technology, 01.09.2019 16:30
question
Mathematics, 01.09.2019 16:30
question
Social Studies, 01.09.2019 16:30
question
Mathematics, 01.09.2019 16:30
question
Social Studies, 01.09.2019 16:30