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
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
question
Engineering, 04.07.2019 19:10
Apressure vessel with an r/t 20 cannot be treated as thin walled vessel. a)-trune b)- false
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
question
Mathematics, 23.04.2021 01:00
question
Mathematics, 23.04.2021 01:00
question
Mathematics, 23.04.2021 01:00
question
Mathematics, 23.04.2021 01:00
question
Mathematics, 23.04.2021 01:00
question
Mathematics, 23.04.2021 01:00
Questions on the website: 13722367