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

  Prompt the user for an int between an upper and lower

prompt the user for an int between an upper and lower boundary. reuse the validateinput method from project to validate

  Write a program that validates time when entered

Write a program that validates time when entered. It should output the time as either AM or PM or the error if entered incorrectly.

  What are differences between trusted and untrusted applets

What are the differences between trusted and untrusted applets? Why doesn't an applet viewed through the browser respond to keyboard events, but the same works fine from within appletviewer?

  Write a java code to count number of capital letters in line

Write a java codenpseudo-code to count the number of capital letters in a line of text. How many comparisons does it do? What is the fewestnumber of increments it might do? What is the largest number?

  Create an interface called player

Create an interface called Player. The interface has an abstract method called play() that shows a message describing the meaning of "play" to the class.

  Write a recursive method power( base, exponent )

Incorporate this method into a program that enables the user to enter the base and exponent.

  Which weblogic property is used to control number of queued

Which WebLogic 4.5x/5.x property is used to control the number of queued requests inside the WebLogic server? When I try load *.jsp files, I see the source code of each JSP files in my browser, what is wrong?

  Implement a generic class set

Implement a generic class Set that maintains a set of items of generic type T using the class LinkedList in the Java API. Your Set class must provide the subsequent functionality:

  Write a program to produce the output using nested loops

Write a program to produce the following output using nested for loops. Use a table to help you figure out the patterns of character on each line

  Write a program that considers a class that keeps track

Write a program that considers a class that keeps track of the sales of an item. An object of this class will have the following attributes: Design and implement the class in Java.

  Highest precedence in java programming

Which operator is considered to be with highest precedence in java programming?

  Compute the maximum points scored by player one and two

Compute the maximum points scored by Player 1 and Player 2. Compute the maximum number of points scored in a continuous sequence by Player 1 and Player 2.

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