 Exercise 2: More Counting... (30%)
  Exercise 2: More Counting... (30%)
 Session 10: Week 20/21: Letter Frequencies
  Session 10: Week 20/21: Letter Frequencies
 Session 10: Week 20/21: Letter Frequencies
  Session 10: Week 20/21: Letter Frequencies
Your first task in this session is to write a program which will read a file, and count how many times the character A (or a) occurs. The program should ignore the distinction between upper and lower case, and should ignore all characters other than A (and a). When the file has been completely read, the program should output the total number of A characters found.
Redirection should be used to cause the program to read the appropriate file via stdin.
As usual, you should test your program carefully, and document any problems etc. in your report.
 
 Exercise 2: More Counting... (30%)
  Exercise 2: More Counting... (30%)
 Session 10: Week 20/21: Letter Frequencies
  Session 10: Week 20/21: Letter Frequencies
 Session 10: Week 20/21: Letter Frequencies
  Session 10: Week 20/21: Letter Frequencies