subject
Engineering, 05.05.2020 15:01 officialalex6330

that reads a text file fun. txt. Then it counts the how many times each letter (within the alphabet) is occurring in the file. It also counts how many times each digit is also occurring in the file. Finally, your code should also count how many times the word "no" is occurring in the file. Then your program should show the results in console as well as write the result into a file result. txt. The output has to be in the following format. Note that if a letter is upper case, you might need to convert it into lowercase. For example, for the given fun. txt file you will get the the following result: a 8 b 2 c 6 d 14 e 22 f 1 g 0 h 11 i 12 j 0 k 1 l 1 m 6 n 10 o 17 p 2 q 0 r 7 s 6 t 17 u 4 v 2 w 8 x 0 y 2 z 0 === 0 0 1 2 2 1 3 1 4 0 5 0 6 1 7 0 8 0 9 0 no count is 2Hint: Use an int array of size 26 to store your letter counts and use another array for size 10 to store the digit counts

ansver
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, aaliyah80
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
image
Engineering, 04.07.2019 18:10, siri5645
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
image
Engineering, 04.07.2019 19:10, nbunny7208
What is the chief metrological difference between measuring with a microscope and with an electronic comparator? a. the microscope is limited to small workpieces. a. the microscope is limited to small workpieces. c. the comparator can only examine one point on the workpiece. d. the microscope carries its own standard.
Answers: 1
image
Engineering, 04.07.2019 19:10, brid7931
Aplate of dimensions 3 m x 3 m is placed 0.37 mm apart from a fixed plate. the plate requires a force of 2n to move at speed of 45 cm/s. evaluate the viscosity of the fluid in between the plates
Answers: 3
You know the right answer?
that reads a text file fun. txt. Then it counts the how many times each letter (within the alphabet)...

Questions in other subjects:

Konu
Mathematics, 14.06.2021 17:50
Konu
History, 14.06.2021 17:50