Computers and Technology
Computers and Technology, 05.05.2020 19:29, npatony

Write a function called countstuff () that takes as a parameter a character array, and returns an int. The prototype must be:
int countstuff (char s[]);
The array passed will be less than 1000 characters long. Your code should return a value indicating the number of uppercase characters, the number of lowercase characters, and the number of digits in the string. The number of uppercase characters should be returned in the millions places, the number of lowercase in the thousands places, and the number of digits in the units places (i. e. UUULLLDDD).

x=countstuff ("Space the final FRONTIER"); // x= 9012000
x=countstuff ("THERE ARE 4 LIGHTS"); // x=14000001
x=countstuff ("Send $1000 to Your Favorite ChArItY!!!"); // x=13012004

To force values into the millions, thousands, or units places, you can do something like
V = cntUp*1000000 + cntlow* 1000 + cntDigits

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 04:30, juliemiddleton05
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, toolazytobehuman
Me and category do i put them in because this is science
Answers: 1
image
Computers and Technology, 24.06.2019 17:00, rosepetals2938
Carlos, an algebra teacher, is creating a series of powerpoint presentations to use during class lectures. after writing, formatting, and stylizing the first presentation, he would like to begin writing the next presentation. he plans to insert all-new content, but he wants to have the same formatting and style as in the first one. what would be the most efficient way for carlos to begin creating the new presentation? going under the file tab and opening the first presentation, deleting all content from each page, and adding new content going under the file tab and clicking on new in the left pane, then choosing new from existing going under the design tab and clicking on themes, then selecting the theme that was used for the first template going under the design tab and opening the template that was created for the first presentation
Answers: 2
image
Computers and Technology, 24.06.2019 20:50, cookie1701
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
Do you know the correct answer?
Write a function called countstuff () that takes as a parameter a character array, and returns an in...

Questions in other subjects:

Konu
Biology, 04.02.2021 22:40
Konu
Mathematics, 04.02.2021 22:40