Creating an interactive java program

Assignment Help Data Structure & Algorithms
Reference no: EM1380197

Question: Create 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: EM1380197

Questions Cloud

Data systems and design : Suppose if you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?
C program to compute and display sales of a store : Modify the C program so that user inputs the buying amount. Check the user's input for validity.
Refresh address counter : A microcomputer memory is built from 64K X 1 DRAM, with DRAM cell array organized into 256 rows. Each row requires being refreshed at least once every four ms, strictly on a periodic basis.
Analysis of the vehicle component : Analysis of the vehicle component: role, work conditions, requirements for the role and
Creating an interactive java program : Create an interactive Java program that illustrates the use of constructors, methods, loops and arrays.
Question about character array : The 2-most important design issues that are specific to character string types are the given, Should strings be simply a special kind of character array or a primitive type?
Create a program using c++ : Create a program using C++ or Java that will automatically generate x numbers between a range provided by the user? For purposes of this project, the range can be 1-20 and store them in an array.
Question about character array : The 2-most important design issues that are specific to character string types are the given, Should strings be simply a special kind of character array or a primitive type?
Homogeneous array : Assume that a homogeneous array with six rows and eight columns, is stored in row major order starting at address 20. If each entry in the array requires only one memory cell.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Create ef?cient algorithm to fnd redundancies

Fnd the redundancies m1, · · · , mn that are within the available budget and that maximize probability that system works correctly. Create an ef?cient algorithm.

  Addition and subtraction of numbers in binary

Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits

  Finding total available storage capacity

A certain hard disk has 480 cylinders, sixteen tracks, and thirty-two sectors of 512 bytes each. It spins at 4800 revolutions per minute, and has an adjacent cylinder seek time of eighty msec, and a max seek time of onde hundred msec.

  Difference between workbook and worksheet

Discuss the difference between a workbook and a worksheet and explain why would you want to use individual worksheets when using Excel?

  Writing algorithm which ?nds xbest

Provide an O(n) algorithm which ?nds xbest such that distbest:= ∑i=1 to n|xbest - xi| is as small as possible.

  Sort array of elements using the quick sort algorithm

"sort an array of 10,000 elements using quick sort algorithm as follows: sort the array using pivot as middle element of the array

  Design a control unit for simple hand held video game

Create a control unit for a simple hand held video game in which a character on the display catches objects. Only demonstrate the transition diagram

  Data structures and algorithms

Provides learners with an understanding of how data structures are used in algorithms and enables them to design and implement data structures

  C program that accepts a month and day

Make a C program that accepts a month and day for example, June 14 from the keyboard as input. Store this data in a string called date.

  Find the weight range of normal onion bags

A packaging equipment is used to put onions into five pound bags. In fact the weights vary according to the normal distribution with expected price of average µ = 5.01 lb and standard deviation s = 0.05 lb.

  Creating villian

Announce a new Villian called sharpay who has a wit of 24, a stealth of sixteen, and who has currently claimed three victims: Chad, Troy, and Gabriella.

  Modify algorithm to always select president of company

How would you modify your algorithm to always select the president of the company (regardless of his fun rating or the consequences on the overall amount of fun we can achieve)?

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