Write a simple program that uses the class

Assignment Help JAVA Programming
Reference no: EM13703784

Question: Need help with a character converter

Create a CharConverter class that performs various operations on strings. It should have the subsequent two public member functions:

Part 1: The uppercase member function accepts a string object and returns the string with all lowercase lettersconverted to uppercase. If a character is already uppercase, or is not a letter, it should be left alone.

Part 3: The properWords member function accepts a string object consisting of words seperated by spaces and returns it with the first letter of each word converted to uppercase.

Program: Write a simple program that uses the class. It should prompt the user to input a string, display it, call one or the other of the class functions to convert it, then display the converted string.

The program should loop to allow additional strings to be converted and displayed until the user chooses to quit.

You need to do various operations on string. Add comments in code section. Code this program in java programming.

Reference no: EM13703784

Questions Cloud

Prepare a main function : Write a function that converts an input of some integer number of nickels into outputs of integer numbers of dollars, quarters, and nickels.
Canonical product of sums : Design a majority circuit. This is a circuit which produces a 1 anytime there are more 1's than 0's on the inputs. Your circuit should have 3 inputs.
What is wrong with this function : What is wrong with this function? Can you find problem in this code?
What is the value of beta : What is the value of beta after the subsequent code executes if the input is 1?
Write a simple program that uses the class : Write a simple program that uses the class. It should prompt the user to input a string, display it, call one or the other of the class functions to convert it, then display the converted string.
Write a function which takes a c string : Write a function which takes a C string as an input and counts the number of non-alphabetic characters in the C string. Non-alphabetic characters include anything outside the ranges 'a' thru 'z' and 'A' thru 'Z'.
Find database management system selection : Identify and describe three criteria that should be used to evaluate the selection of a database management system.
Limitations of the relational model : Identify and describe three limitations of the relational model and recommend strategies to overcome these limitations.
Program that allows two players to play tic-tac-toe : Implement a program that allows two players to play tic-tac-toe. Draw the game grid and an indication of whose turn it is (X or O). Upon the next click, check that the mouse click falls into an empty location,

Reviews

Write a Review

JAVA Programming Questions & Answers

  Graphics program that draws 12 strings

Write a graphics program that draws 12 strings, one each for the 12 standard colors, besides Color.WHITE, each in its own color. Provide a class ColorNameViewer and a class ColorNameComponent.

  What is an illustration of a hypothesis test please explain

what is an example of a hypothesis test? please describe the context of the problemissue that you encountered what the

  Java program for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

  Develop view for order number and order total in file

Develop a view named OrdTot. It comprises of order number and order total for each order currently on file. Order total is the sum of number ordered.

  Your technical leader has submitted additional requirements

a - your technical leader has submitted additional requirements for your application. you have been asked to enhance

  Java application to display multiple choice questions

Write down the application which displays series of TEN(10) multiple choice questions: questions must cover all the Java. Each question must have four possible answers and only one answer must be correct.

  In this project you need to write a program called gf2java

in this project you need to write a program called gf2.java to implement the finite field gfpnwhere p is a prime number

  Write a program to print all of the permutations

Write a program to print all of the permutations of the values 1, 2, 3, ..., n - Your program takes one argument from the command line, which as an integer n  that is the number of elements.

  Java code using jframe

Write a Java code using JFrame. This code needs to manipulate 4 shapes(2 rectangles and 2 squares) in a 400x400 JFrame. This needs to manipulate the shapes in 3 different ways, using 3 different methods. One for translating a shape, one for proportio..

  Create java program to find number of days left in that year

Create a Java program called "DaysLeftInYear.java" that outputs the number of days left in that year. use the calendar class to represent dates. Use the DateFormat class to display the current date in the output.

  List various bindings that are needed to determine semantics

List the various bindings that are required to determine the semantics when the statement is executed. For each binding, indicate the binding time used for the language.

  Implement the finite field gf

Write a program called "GF2.java" to implement the finite field GF(p n )where p is a prime number andn is a positive integer.You also need to write four methodsto realize.

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