Find out the length of the string

Assignment Help Computer Engineering
Reference no: EM1335326

Write an interactive Java program that illustrates the use of methods, constructors, loops and arrays. Your Program will do the following:

1. Ask the user for a String input of letters, i.e., Ohio; John Doe; AnyTown. Notice that strings with spaces are allowed.
2. Offer your user two choices:
1. Determine the length of the string
2. Determine how many consonants and how many vowels are in the word.
3. You must write your own method to determine the length of the String (do not use String's length() method).
4. You must error check your users' input for numbers and special characters.
5. You must give your user three opportunities for wrong input before you terminate the program.
6. In the absence of three consecutive erroneous input attempts, your user must have the opportunity to continue running the program until directly deciding to terminate.

Reference no: EM1335326

Questions Cloud

Recognizing the types of authorized arrests : Identify types of authorized arrests; differentiate between acceptable and unacceptable police action, during and before an arrest; determine if the arrest is a proper seizure of persons under the Fourth Amendment.
Explain marketing and when selecting a test market city : Explain Marketing and When selecting a test market city, a researcher should look for a city
Stakeholders not communicate politely as project leader want : Stakeholders may not communicate as frequently or politely as a project leader prefers.
Hrm and performance appraisal : Write an article regarding Human resources strategic plan on Guinness brewery in Malasia and Nigeria and the main topic is performance appraisal and evaluation procedures on these two countries
Find out the length of the string : In the absence of three consecutive erroneous input attempts, your user should have the opportunity to continue running the program until directly deciding to terminate.
Stephanie robbins is the three hills power company : Stephanie Robbins is the Three Hills power Company management analyst assigned to simulate maintenance costs. In section 15.7 we describe the simulation of 15 generator breakdowns and the repair times required when one repairperson is on duty per shi..
Find out largest, smallest, and median values of array c : Your program must ask for a number and print "YES" if the number is in array a, otherwise print "not found"
Show the human capital concept worksheet : Human Capital Concept Worksheet - Worksheet includes tips for completing the Concept
Suppose are predicting a steady decline foreseeable future : Suppose are predicting a steady decline of 6% per year in dividends for the foreseeable future. What is the most you would be willing to pay for this stock.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Feasibility analysis

What is meant by the feasibility analysis? Explain how that experience relates to one or more of feasibility tests for technical, operational, schedule, or economic feasibility.

  Describe the mechanics of Buffer overflows

Prepare a complete tutorial, including an analogy to describe the mechanics and a graphic to support your analogy, on one of the subsequent areas

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

  Compare and contrast the three products

Why will a company choose one over another.

  Pseudorandom numbers

In any use of the pseudorandom numbers, whether for the encryption, simulation or the statistical design.

  Activity diagram and a use case diagram

AREI real estate agents utilize its information in order to search AREI’s database and the different listing service for houses which meet their needs.

  What are java predefined methods

What are java predefined methods

  What is a data type in c

What is the difference between a constant and the variable in a program? Why would you use one or the other.

  Build a program to implement the selection sort algorithm

build a program to implement the selection sort algorithm, which will sort a list of strings. Selection sort function should sort the list of strings in alphabetical order. You only need to provide the details for the selectionSort() function base..

  How to allocate for the management reserve

How much would you allocate for the management reserve? What are your assumptions about these reserves.

  Write a recursive implementation of euclids algorithm

Write a recursive implementation of Euclids algorithm

  How to use the schedule performance index

Use CPI to calculate the estimate at completion (EAC) for this project. Is the project performing better or worse than planned.

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