Write a method with an input variable

Assignment Help Computer Engineering
Reference no: EM132137145

((String + Loop + method) Write a Java program to meet the following requirements:

1. Prompt the user to enter three strings by using nextline(). Space can be part of the string.

2. Write a method with an input variable (string type). The method should return the number of uppercase letters of the input variable.

3. Get the number of the uppercase letters for each user input string by calling the method

4. Compare the numbers and display the maximum, minimum numbers and the strings

You must use below input example (copy and paste) to test your program

Please input a string: y8aM91cA B

ABC123 X

YUM49 YZ

and output should be like:

YUM49 YZ has the maximum number of uppercase: 5

y8aM91cA B has the minimum number of uppercase: 3

Reference no: EM132137145

Questions Cloud

What is the complexity of any dynamic programming approach : What is the complexity of any dynamic programming approach based on parts a) and b), assume that s and t are of length a and b. Use Big Omega notation
Print the converted sentence both to the screen : Print the converted sentence both to the screen and to an output file. Your input file consists of a variable number of records.
Develop your own string class : Develop and work with a C++ class, define constructors and destructors, define member functions outside .
Which of the following statements will display a string : Which of the following statements will display a string as "Jones, Jane" (the last name, a comma, a space, and the first name) in the lblFullName control?
Write a method with an input variable : Write a method with an input variable (string type). The method should return the number of uppercase letters of the input variable.
Write a query that satisfies the given requirements : Write a query that satisfies the given requirements by making sure to use GROUP BY and HAVING clauses.
Prompts the user to input the shipping cost per liter : Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers.
What is the present value of a 3-year annuity : What is the present value of a 3-year annuity of $170 if the discount rate is 5%? (Do not round intermediate calculations. Round your answer to 2 decimal places
What is the expected return on portfolio : What is the expected return on this portfolio? What is the beta of this portfolio? Does this portfolio have more or less systematic risk than an average asset?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Problem on encryption using a one-round version of des

Problem on encryption using a one-round version of DES.

  Discuss the trade-offs between sharing and security

Provide an instance that comes close to your ideal balance between resource sharing and protection against unauthorized resource access.

  Modifying the database table

A database table comprises of the following columns: employee's name, SS#, job-title, years-in-job, hiring-date, and base-salary.

  Evaluate issues raised from the carlson san mixing equipment

Evaluate issues raised from the Carlson SAN mixing equipment from a number of vendors and determine management options for dealing with this type of situation.

  What would be the average disk access time

Are the people who are against adding RAID to the system correct in their assertion that 50% slower disks will result in revenues declining to $5,000 per hour?

  How to modify bob''s behaviour to prevent this threat

imagine we are using Lamport's hash, and Bob's system crashes before receiving Alice's reply to a message. Further suppose an intruder, Trudy, can eavesdrop and detect that Bob crashed (maybe Trudy can even cause Bob to crash).

  Describe the optimal strategy for the offline algorithm

Describe the optimal strategy for the offline algorithm and show that it causes at most m + n/m page misses in total, starting from an empty cache.

  Write another function called db-consistant

Write another function called db_consistant that takes a dictionary of dictionaries in the format described and returns True if.

  Make a program that implements the use of an int array

build a Java application that implements the use of an int array. Use 'for' loops to iterate through the array using the array's length variable to stay within the array bounds

  A painter is standing on a work platform that is 27 feet

a painter is standing on a work platform that is 27 feet above ground level. for fall protection the workers safety

  Show the total amount received from selling

Calculate and show the total amount received from selling the stock and the total amount paid for the stock.

  Calculate the peak performance in g flops with reasoning

Calculate the peak performance in G flops with reasoning in each of the following two vector supercomputers. The Cray Y-MP C-90 with 16 vector processors.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd