Write a program that gets input for a string

Assignment Help JAVA Programming
Reference no: EM131587477

Directions

The files must be called <LastInitialFirstInitialUnit3Ch12.java>

Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter.

Only submit the .java file needed to make the program run. Do not submit the .class file or any other file.
Style Components

Include properly formatted prologue, comments, indenting, and other style elements as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892.
Topics covered in chapter

Topics with * are covered in this assignment.

*Integer Types and Floating Point Types
*Char Type and ASCII Character Set
*Type Conversions
*Prefix/Postfix Modes for Increment/Decrement Embedded Assignments
Conditional Operation Expressions Short Circuit Evaluation
Empty Statement
Break statement within a loop
*For loop header detail Enumerated types
*Hexadecimal, Octal, and Binary Numbers
Basic Requirements

Write a program that gets input for a string, then output this string character by character showing the upper case, lower case, initial case, binary, and hex values of each character.
LiFiUnit3Ch12.java

• Get input for a string
• Print a header row per the example at the bottom.
• Loop through the string printing the following:
o The lower case of each character
o The upper case of each character
o The initial case of each letter (case not changed)
o The ASCII value of each character
o The Binary representation of each character broken out in 2 sections of 4 bytes each (see example).
- Use the Integer wrapper class specifying the radix. Refer to the java docs for more info
o The Hex value of each character output in upper case
- Use the Integer wrapper class to convert to Hex

• Hints
o There is no need to convert case for non-letters although no points will be taken off if they are converted
o The ASCII, Binary, and Hex are based on the initial case entered
o Notice the binary values are padded with zeros on the left to make them the correct number of digits
 A separate method would be best to accomplish this

Sample output is provided below. Be sure to mimic it exactly except for search value and random numbers.
Output of lower case characters correctly
Output of upper case characters correctly
Output of ASCII correctly
Output of Binary correctly
Output of Hex correctly

NOTE: Complete your activity and submit it by clicking "Submit Assignment"

Total Percentage

Reference no: EM131587477

Questions Cloud

Determine how you will fix each type of error : Determine how you will fix each type of error. Be sure to clearly highlight the five steps within your posting - Using your text and/or the Internet as a resour
Explain community groups protest park renovation : Explain Community Groups Protest Park Renovation, At a contentious Community Board meeting, neighborhood and student groups challenged the city's plan
How much revenue was earned from digital sales : Suppose in one year, total revenues from digital sales of pop/rock, tropical (salsa/merengue/cumbia/bachata), and urban (reggaeton).
Eurodollar futures contract : Suppose you sell one Eurodollar futures contract at a price of 96.30 and at expiration of the futures contract 90-day $ LIBOR is 6%,
Write a program that gets input for a string : Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital
What was the taxpayer initial tax basis in the property : what was the taxpayer's initial tax basis in the property?
Discuss how the deliverable will be accepted by the customer : Discuss how the deliverable will be accepted by the customer/client. Provide a Lessons Learned section to include any information related to the project.
The interest rate at the beginning of year : The borrower believes that the interest rate at the beginning of year (BOY) 2 will increase to 7%.
Describe the cognitive tool used to interpret the data : Identify the instrument or instruments used to quantify the data, the level of measurement for each instrument, and the statistics used to analyze the data.

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