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

  Engineer using an automated monitoring system

auto mechanic with an automatic diagnostic system.a train engineer using an automated monitoring system.

  Explain the following statements as logic expressions

Please state the following statements as logic expressions.

  Prolog as programming language for logic

Utilizing the Prolog as the programming language for the LOGIC, form the relevant command in order to perform the following tasks. Prolog Lists - A list is either empty or it comprises of the first element (head) and a tail, which is a list itself.

  Visual logic

Consider that you are working with “Visual Logic”. Develop the logic for a program which enables a user to enter the 10 numbers, and then display them in reverse order of their entry.

  Show the mortgage payment amount

Write down the program as a procedural C++ program and using a loan amount of $200,000, a term of 30 years, and an interest rate of 5.75%. Insert comments in the program to document the program.

  Challenges for enterprise system integration

State and discuss the challenges legacy systems pose for the enterprise system integration. Give specific examples in order to support your response.

  Listing the values that have been inserted

Write down a Java program that loads 12 random integers with the values between 1 and 100 into a tree. Apart from building the tree.

  Handling the asset and threat

Propose the reasonable values for the items in risk register for this asset and threat, and offer justifications for your choices.

  What are the characteristics of the dss system

You are a chief information officer (CIO) who is employed by a corporation that generates electricity with three coal burning electric power plants located in several parts of the country.

  Show your solution to place a student

Using simple loops and the logic operator "AND" and "OR," make a hierarchy chart that shows the phases, pseudo code, and flowcharts to illustrate your solution to place a student in one of the aforementioned categories.

  Description of the situation, intended users

Write down a paper demonstrating the application of your chosen DSS.

  Design the function definitions of pixel class constructor

Write the function definitions of the Pixel class constructor adn CurrentStatus member functions.

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