Visitors count in decreasing sequence
C / C++ / MFC
1
Posts
1
Posters
1
Views
1
Watching
-
Hi guys, I was trying to solve a coding question I found in adaface.com using C++.The question is : "A manager hires a staff member to keep a record of the number of men, women, and children visiting the museum daily. The staff will note W if any women visit, M for men, and C for children. You need to write code that takes the string that represents the visits and prints the count of men, woman and children. The sequencing should be in decreasing order". I was able to count the number of women, men and children but can't print them in decreasing sequence. This question is provided as practice question here:https://www.adaface.com/questions/coding