Computers and Technology

Count uppercase, lowercase, special character and numeric values
given a string, write a program to count the occurrence of lowercase characters, uppercase characters, special characters and numeric values.

examples:

input : #geeks01for@geeks07
output :
upper case letters : 5
lower case letters : 8
numbers : 4
special characters : 2

input : *geeks4geeks*
output :
upper case letters : 6
lower case letters : 4
numbers : 1
special characters : 2

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, SundaeSunday
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_balance should be removed since header files should not contain constants. c)the definition of cashregister should be removed since header files should not contain class definitions. d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 08:30, Bradgarner772
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
image
Computers and Technology, 23.06.2019 20:50, terryhgivens5349
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
Do you know the correct answer?
Count uppercase, lowercase, special character and numeric values
given a string, write a progr...

Questions in other subjects:

Konu
Biology, 09.10.2019 21:30
Konu
History, 09.10.2019 21:30