Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Directions

The files must be called

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

Java, Programming

  • Category:- Java
  • Reference No.:- M92396191
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As