Computers and Technology
Computers and Technology, 26.11.2019 04:31, Twitches

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:40, kekeke68
Peripherals are part of the main computer. true false
Answers: 3
image
Computers and Technology, 22.06.2019 11:00, Yamari000
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
image
Computers and Technology, 23.06.2019 03:00, tay9122
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
image
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
Do you know the correct answer?
Write a program to read a text file. determine if the character is uppercase, lowercase, a digit, or...

Questions in other subjects:

Konu
Spanish, 16.10.2020 07:01
Konu
Geography, 16.10.2020 07:01
Konu
Advanced Placement (AP), 16.10.2020 07:01