Write a C program named as listLetterFreq.c that lists the frequency of the letters from the input via ignoring the case sensitivity. For example, sample outputs could be like below $cat test.txt This is a list of courses. CSC 1010 - COMPUTERS & APPLICATIONS $./ listLetterFreq < test.txt

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter12: Enhancing A Document
Section: Chapter Questions
Problem 9QY
icon
Related questions
Question

Write a C program named as listLetterFreq.c that lists the frequency of the letters from the input via ignoring the case sensitivity. For example, sample outputs could be like below

$cat test.txt

This is a list of courses.

CSC 1010 - COMPUTERS & APPLICATIONS

$./ listLetterFreq < test.txt 

Letter a or A appears 3 times
Letter b or B appears 0 times
Letter c or C appears 5 times
Letter d or D appears 0 times
Letter e or E appears 2 times
Letter for F appears 1 times
Letter g or G appears 0 times
Letter h or H appears 1 times
Letter i or I appears 5 times
Letter j or J appears 0 times
Letter k or K appears 0 times
Letter 1 or L appears 2 times
Letter m or M appears 1 times
Letter n or N appears 1 times
Letter o or O appears 4 times
Letter p or P appears 3 times
Letter q or Q appears 0 times
Letter r or R appears 2 times
Letter s or S appears 8 times
Letter t or T appears 4 times
Letter u or U appears 2 times
Letter V or V appears 0 times
Letter w or W appears 0 times
Letter x or X appears 0 times
Letter y or Y appears 0 times
Letter z or Z appears 0 times
Question: Run the C program, only attach a screenshot of the output in the answer sheet.
Transcribed Image Text:Letter a or A appears 3 times Letter b or B appears 0 times Letter c or C appears 5 times Letter d or D appears 0 times Letter e or E appears 2 times Letter for F appears 1 times Letter g or G appears 0 times Letter h or H appears 1 times Letter i or I appears 5 times Letter j or J appears 0 times Letter k or K appears 0 times Letter 1 or L appears 2 times Letter m or M appears 1 times Letter n or N appears 1 times Letter o or O appears 4 times Letter p or P appears 3 times Letter q or Q appears 0 times Letter r or R appears 2 times Letter s or S appears 8 times Letter t or T appears 4 times Letter u or U appears 2 times Letter V or V appears 0 times Letter w or W appears 0 times Letter x or X appears 0 times Letter y or Y appears 0 times Letter z or Z appears 0 times Question: Run the C program, only attach a screenshot of the output in the answer sheet.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Bare Bones Programming Language
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage