Write a program that ask user for a string of length 10, then count and print the number of character C in this string,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a program that ask user for a string of length 10, then count and print the number of character C in this string,

Post by answerhappygod »

Write A Program That Ask User For A String Of Length 10 Then Count And Print The Number Of Character C In This String 1
Write A Program That Ask User For A String Of Length 10 Then Count And Print The Number Of Character C In This String 1 (54.01 KiB) Viewed 61 times
Write a program that ask user for a string of length 10, then count and print the number of character C in this string, ignore case. ( Ex: input: Coco Ciao! output: 3 (3 C's) Write a function called allCapital that takes a string variable and update all character to capital letter in the string. Ex: int main(){ string st = "Hi! I love race car."; allCapital(st); cout << st << endl; //print out: HI! I LOVE RACE CAR. return 0; }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply