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

  Describe implementation of algorithm on simd computer

Describe an implementation of that algorithm on an SIMD computer where the processors are connected to form a linear array

  Data speed effect on fundamental business decisions

Can the speed in which data is transmitted have an adverse effect on fundamental business decisions? Yes, speed that is traveling at big rates of speed can have an affect on fundamental business decisions.

  Data structures and algorithm design

Data Structures and Algorithm Design

  Demonstrate a decision tree or table

Demonstrate a decision tree or table

  Create algorithm to calculate union of two input sets-array

Create algorithm to calculate union of two input sets given as arrays, both of size O(n). The output must be array of distinct elements that form union of the sets.

  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

  Use of primitives helps remove ambiguities in algorithm

Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm. Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  Creating visual studio.net web application

Make a Visual Studio.NET 2005 web application with one aspx form. Place a CheckBoxList, TextBox, Button, and Label control on the form.

  Determine algorithm for cs curriculum consists of n courses

Determine an algorithm which works directly with this graph representation, and calculates minimum number of semesters necessary to complete the curriculum.

  Calculate shortest path-djkstra-s shortest path algorithm

With indicated link costs, use Djkstra's shortest path algorithm to calculate shortest path from E to all network nodes. Illustrate how algorithm works by computing table.

  Creating financial tracking program

Acme Inc. is making next generation financial tracking program, and Alice has been provided the task of writing encryption component.

  Create algorithm to prepare daily hotel charge report

Create the algorithm to prepare the daily hotel charge report. Input consists of series of records which contain a room number, customer name, cost of the room, and cost of meals charged to the room.

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