Write a program that reads some text and displays how many upper case, lower case and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that reads some text and displays how many upper case, lower case and digits are present in the text. Sample run1: Obtained by just pressing ENTER key Enter text: You did not enter any text Sample run2: Enter text: khja TrGdR1 3 4 )& You text contains: 3 capital letters and 6 lowercase letters and 3 digits Write a program that reads some text and displays how many upper case, lower case and digits are present in the text. Sample run1: Obtained by just pressing ENTER key Enter text: You did not enter any text Sample run2: Enter text: khja TrGdR1 3 4 )& You text contains: 3 capital letters and 6 lowercase letters and 3 digits
Expert Answer:
Answer rating: 100% (QA)
The image contains a programming problem statement that asks for a program to be written which reads ... 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
-
1. Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1 and 0. There is no F+ or...
-
Imagine that Costco has $500,000 of sales (selling 31,250 units) in August and has a contribution margin ratio of 40% and fixed costs of $20,000. If sales in units increase by 15% in September, what...
-
Over the past 10 years, a bank has experienced the following loan losses on its C&I loans, consumer loans, and total loan portfolio. Using regression analysis on these historical loan losses, the...
-
What are "cash equivalents"? Why might a company include cash equivalents with cash when preparing its cash flow statement?
-
This year, the Tastee Partnership reported income before guaranteed payments of $92,000. Stella owns a 90% profits interest and works 1,600 hours per year in the business. Euclid owns a 10% profits...
-
Does the fact that selling is included as part of the promotional mix weaken or strengthen its role as a sub-element of marketing?
-
Water World is considering purchasing a water park in Signal Mountain, Tennessee, for $ 1,850,000. The new facility will generate annual net cash inflows of $ 495,000 for nine years. Engineers...
-
The audited accounts of Wilo Ltd . for the year - end 3 1 December 2 0 2 2 , show a loss of $ 6 , 8 0 0 , 0 0 0 after charging the following: $Depreciation 1 , 7 5 0 , 0 0 0 Legal fees 1 , 6 0 0 , 0...
-
How Should I calculate this the questions? Are the money markets and forward markets in parity? How profitable will the follow-on order be? Would you make this new sale? Moreno had discussed her...
-
"One cause of uncertainty is proximity: things about to happen are easier to estimate than those further out in the future. One approach to dealing with uncertainty is to put off decisions until data...
-
Consider a case of pure exchange, with no externalities. Amy has the utility function UA =0.5XA + 0.5YA and Betty has the utility function UB = 0.5XB0.5B 0.5. The resource constraint is XA + XB = 10...
-
Physicians and nurses have experienced increased burnout for a variety of reason, including attempt to keep up with evolving technologies in healthcare. What are some recommendations to improve...
-
Resolving a Complex Patient Complaint Imagine the following scenario: A 45-year-old man is admitted through the emergency department and taken to the operating room before being admitted for 1 night...
-
Given the following estimates for all activities of a project (in days) Activity Optimistic A B C D E F 4 2 2 3 5 2 Most Likely 7 5 5 8 7 Pessimistic 10 6 8 a 17 12 The Critical Path is A-B-E-F. What...
-
Meder Inc. has a defined benefit pension plan. The following information is provided from the actuaries and plan trustees regarding pension transactions for the year ending 12/31/2016. Amounts in...
-
The following table shows the rates of total return in successive years from 2004 to 2008 for the Sprott Canadian Equity Fund and for the benchmark Toronto Stock Exchange S&P/TSX Composite Index. By...
-
Repeat Practice Program 7 using JOptionPane, which is described in the graphics supplements of Chapters 2 and 3. Practice Program 7 Combine the programs from Programming Projects 5 and 6 to read...
-
The class StringLinkedListWithIterator (Listing 12.9) is its own iterator, but it does not quite implement the Java Iterator interface. Redefine the class StringLinkedListWithIterator so that it...
-
Revise the class Pet, as shown in Listing 6.1 of Chapter 6, so that it is serializable. Write a program that allows you to write and read objects of type Pet to a file. The program should ask the...
-
The two circular disks, each of mass \(m_{1}\), are connected by the curved bar bent into quarter-circular arcs and welded to the disks. The bar has a mass \(m_{2}\). The total mass of the assembly...
-
The turbine rotor in a ship's power plant has a mass of \(1000 \mathrm{~kg}\), with center of mass at \(G\) and a radius of gyration of \(200 \mathrm{~mm}\). The rotor shaft is mounted in bearings...
-
A body weighing \(25 \mathrm{lb}\) is suspended from a spring of constant \(k=160\) \(\mathrm{lb} / \mathrm{ft}\). At time \(t=0\), it has a downward velocity of \(2 \mathrm{ft} / \mathrm{sec}\) as...
Study smarter with the SolutionInn App