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, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
Match the following. 1. formatting that is applied when cell data meets certain criteria 2. borders with formats not found on the border tool 3. a shortcut bar that contains tools for commonly used formats 4. formats that can be applied to numbers conditional formatting custom borders format bar number formats
Answers: 3
question
Computers and Technology, 25.06.2019 03:10
Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)
Answers: 1
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
Mathematics, 02.02.2021 01:00
question
Mathematics, 02.02.2021 01:00
Questions on the website: 13722363