Write a method public static char touppercase(char ch)

Assignment Help JAVA Programming
Reference no: EM13942381

1. Write a program in which the main method calls a method with the heading public static char changeCase(char ch) that if ch is a lowercase letter, the method will return the corresponding uppercase letter, and if ch is a uppercase letter, the method will return the corresponding lowercase letter. If ch is not a letter, the method returns the same value of ch. Thus, for instance, changeCase('a') returns A, changeCase('B') returns b, and changeCase('3') returns 3. Note that the uppercase letters have a unicode (ascii code) value that is 32 lower than the corresponding lowercase ones.

Your main method should contain three calls to changeCase() for each case mentioned above.

2. Write a method public static char toUpperCase(char ch) that if ch is a lowercase letter, the method will return the corresponding uppercase letter, and if ch is any other character, it will return that character. Read a string consisting of "My country tis of thee, Sweet land of liberty, Of thee I sing" and using toUpperCase() in a loop, convert the entire string to uppercase letters, where the string is assigned to the variable s.

Reference no: EM13942381

Questions Cloud

What are some of the challenges marketers must consider : What are some of the challenges marketers must consider when designing their pricing strategies?
What is causing hals cash flow problems : Hal Carrier, of Bulltuff Stock Trailers, Inc., has asked you for help. In the last four months, he has had several checks written to suppliers that were refused by his bank because of nonsufficient funds. Now his main supplier, Alcoa Aluminum Supp..
Determine the total power dissipated from the disks : The paint on the rotating disk is worn off by dust in the air, exposing the base metal, which has an emissivity of s = 0.10. Determine the total power dissipated from the disks worn top surface.
United states has a consistent : If the United States has a consistent trade deficit with another country.
Write a method public static char touppercase(char ch) : Your main method should contain three calls to changeCase() for each case mentioned above.
Dialogue between two artists : Create a dialogue between two artists discussing their work(s) with an interviewer asking questions in front of an audience at an art gallery (much like a panel discussion format).
The purchase price of a loader including tires : The purchase price of a loader including tires, sales tax, and all other costs associated with its purchase is $210,000. The life of the loader is 9years, at which time it will have an estimated salvage value of $23,000. The replacement cost of the t..
What type of sentence is the following : What type of sentence is the following? (End punctuation has been omitted.) Mr. Rodman asked if anyone else was interested in tickets for the afternoon sports event
What are value-returning methods : The methods must include: one value-returning method and one void method which will receive a formal parameter and one (each) that will not. Your program must compile and run.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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