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

  Write a method called printlevel

Write a method called printLevel that takes an integer n as a parameter and that prints the values at level n from left to right. The values should be printed one per line.

  A this adds storage of the maindata as an external random

a. this adds storage of the maindata as an external random access file with id as key to allow listall and query

  Tracer for java

Implementation of a tracer of Java objects and the tracer can be invoked from any point of a Java program, accepting an object as argument.

  Write an application that enables users to enter student ID

Write an application that enables users to enter student ID and three exam scores. Provide a method to compute and returnthe overall exam average.  Provide another method that prints all scores and the average value formatted with no digits to the ri..

  In this project you will simulate some people catching fish

in this project you will simulate some people catching fish in a lake. the purpose of the assignment is to get used to

  Create a dice game that uses a six-sided die

Create a dice game that uses a six-sided die - Using switch statements print the face of the die based on the value obtained.

  Program with backtracking removing all gotos

Please fix the below program with backtracking removing all gotos  and also run the program before posting it and please comment before each line or explain such as what this line means or does .

  Give at least one constructor without any parameter

We learned as popular Set implementation. Write own TreeSet class that implements following interface: You are to give at least one constructor without any parameter.

  String as its parameter and returns the length

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.A word is a sequence of one or more non-space characters (any character other than the space character).

  Javas drawing capabilities

This week, we will be learning to use some of Java's drawing capabilities. The Graphics class provides methods for drawing many different shapes, using different colors, and for drawing strings using different fonts.

  Bullpart 1 several types of point of interests poi such as

bullpart 1 several types of point of interests poi such as - 1 petrol station 2 taxi stand 3 atm 4 hospital and 5

  Develop a complex web site

Develop a complex web site or piece of multimedia from scratch, using information gathering and design techniques;

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