Fatin F.

asked • 11/30/19

Char Array Programming. Need to write a c++ programming that can count alphabets in a sentence but not include other characters and space .Alphabets only

Char Array:

Write a program that will read in char array of size N. Allow the user to fill in the array.

As each component is read, print it only if it is not a duplicate of a character already read. Count the number of occurrence for each character.

Example: input


This websites uses cookies that will analyse the traffic.


Output:

Character used:

t h i s w e b u c o k a l n y r f  

number of occurrence

t= 5

h=3

i=5

s=7

w=2

e=5

b=1

u=1

.

.

f=2


Hint:

·       Can use more than 1 array to solve this problem.

·       Only alphabet count only (space and other characters not counts)

1 Expert Answer

By:

Patrick B. answered • 03/05/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.