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

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
question
Engineering, 04.07.2019 19:10
Asteam is contained in a rigid tank with a volume of 1 m3. initially, the pressure and temperature are 7 bar and 500 oc, respectively. the temperature drops due to cooling process. determine: (1) the temperature at which condensation begins in °c, (2) the fraction of the total mass that has condensed when the pressure decreased to 0.5 bar. (3) the volume in m3 occupied by saturated liquid at the final state?
Answers: 3
question
Engineering, 04.07.2019 19:10
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
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
question
Mathematics, 29.04.2021 01:00
question
Mathematics, 29.04.2021 01:00
question
Mathematics, 29.04.2021 01:00
question
Mathematics, 29.04.2021 01:00
question
Mathematics, 29.04.2021 01:00
Questions on the website: 13722363