a)Write a C program to find the number of digits, uppercase and lowercase letters and a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a)Write a C program to find the number of digits, uppercase and lowercase letters and a total alphabet letters, in a sentence entered by the user. Define and use the following function for this job and print the results in main. (Do NOT use ctype functions) void countDULA (const char *, int *, int *, int *, int *); EXAMPLE OUTPUT 1: Enter a sentence: BaZZINGA! from S02E23 Number of digits = 3 Number of upper case letters = 8 Number of lower case letters = 6 Number of total alphabet letters = 14. b) Edit the conditional operations made in the function countDULA to use ctype functions. (Do NOT alter the main) a)Write a C program to find the number of digits, uppercase and lowercase letters and a total alphabet letters, in a sentence entered by the user. Define and use the following function for this job and print the results in main. (Do NOT use ctype functions) void countDULA (const char *, int *, int *, int *, int *); EXAMPLE OUTPUT 1: Enter a sentence: BaZZINGA! from S02E23 Number of digits = 3 Number of upper case letters = 8 Number of lower case letters = 6 Number of total alphabet letters = 14. b) Edit the conditional operations made in the function countDULA to use ctype functions. (Do NOT alter the main)
Expert Answer:
Answer rating: 100% (QA)
Heres a sample C program that finds the number of digits uppercase and lowercase letters and ... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Write code using struct-defined data types Organize source code in multiple header and implementation files (.h and .cpp files). Create, initialize, read, update, and display the contents of struct...
-
Your input file contains sentences. A sentence contains words seperated with one space or more spaces. And a sentence ends with a "." Symbol. Write appropriate lex code to create desired outputs....
-
What change in atomic number occurs when a nucleus emits an alpha particle? A beta particle? A gamma ray?
-
Fancy Company reported a contribution margin of $10 per unit. The companys fixed costs per period were $30,000. Sales were $48,000 for the 3,200 units sold during the period. The income tax rate is...
-
The Graduate Management Admission Test (GMAT) is a standardized exam used by many universities as part of the assessment for admission to graduate study in business. The average GMAT score is 547...
-
Alyson Clark is a licensed incorporated CPA. During the first month of operations of the business, the following events and transactions occurred: Sept. 1...Invested $40,000 cash in exchange for...
-
Explain some of the limitations placed on these rights by citing at least three instances where this has happened. This means finding three cases where the Bill of Rights protections have been...
-
Kai is the president of Zebra Antiques. An employee, Reese Francis, is due a raise. Reeses current benefit analysis is as follows: Compute the benefit analysis assuming: 3 percent increase in pay. ...
-
Consider a 232 ft long run of 2 inch diameter Schedule 40 PVCpipe. The pipe was installed at 72 F, and 145 F water will berun through the pipe. 1. What is the elongation of the pipe if it is...
-
The Supplier Preferencing Model tried to classify how a Supplier views your organisation in terms of attractiveness of account and relative spend. Suppliers may view your company as Core,...
-
Supply chain Management - Purchasing report Aritzia company: Description of Supplier sourcing strategies Description of the vendor evaluation and development program? Is the program effective?
-
t has been discovered that a certain cornfield created in the 1 8 th - century was a right triangle. One leg of the triangle was formed by a 6 0 ft long walking trail. The hypotenuse of the triangle...
-
Described how you "set realistic expectations about the cost-schedule- scope equilibrium" (Verzuh, 2021, p. 37) using the "project life cycle" (Verzuh, 2021, pp. 40- 41) for a new product being...
-
4. Let the table with the following training data be given. Num. X1 X2 Class 1 6 1 0 2 7 3 0 3 8 2 0 4 st 9 0 0 5 8 4 1 6 8 6 1 7 9 2 1 8 9 5 1 In the following, use the Manhattan distance d(a, b),...
-
Suppose that the prevailing Treasury spot rate curve is the one shown in the table below (Note: I am not asking you to compute the spot rates using bootstrapping, I am already giving you the spot...
-
3M Company reports the following financial statement amounts in its 10-K report: a. Compute the receivables, inventory, and PPE turnover ratios for both 2018 and 2017. (Receivables turnover and...
-
Consider the previous question, but include + or letter grades. A+ is 4.25, A is 3.75, B+ is 3.25, B is 2.75, and so on. a. Why cant we use one switch statement with no other conditionals to convert...
-
Suppose that you are going to create an object used to count the number of people in a room. We know that the number of people in the room can never be negative. Create a RoomCounter class having...
-
The following code fragment will not compile. Why? if !x > x + y x = 2 * x; else x = x + 3;
-
Apple stock is selling for \($120\) per share. Call options with a \($117\) exercise price are priced at \($12.\) What is the intrinsic value of the option, and what is the time value?
-
Ibrahim bought 200 shares of a stock trading in the Abu Dhabi Securities Exchange at AED 12 (United Arab Emirates dirham) per share. Over time, the price of the stock increased to AED 18 per share....
-
Twitter is trading at \($34.50.\) Call options with a strike price of \($35\) are priced at \($2.30\) . What is the intrinsic value of the option, and what is the time value?
Study smarter with the SolutionInn App