ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 04 May 2017 My Price 9.00

The ASCII value of each integer

I am having trouble completing my project, specifically on aligning the output with the correct headings.

 

 

Unit 3 Chapter 12 Assignment
Grading Information: This Program is due on Date Specified.
Comments are REQUIRED; flow charts and pseudocode are NOT REQUIRED.
Directions Points 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. 5% 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. 5% Topics covered in chapter
Topics with * are covered in this assignment. Ensure you use every item listed below in your
completed 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 (ternary)
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 a substring of this string character by
character showing the upper case, lower case, initial case, binary, and hex values of each
character. Repeat until quit. LiFiUnit3Ch12.java 80%
Get input for a string containing both numbers and letters of any length Get input for a substring length (0 to quit)
Use a for loop with postfix notation to increment through the string and printing
the following:
o Use a “ternary operator” (pg. 531) that sets the substring length to the
actual string length if the value entered for the substring is longer than
the actual string length
o The initial digit/character
o The ASCII value of each character
o The ASCII value of each integer converted to a string Notice the columns for the char/int Hint: isdigit would work great for this.
o The Hex value of each integer/character output in upper case Use the Integer wrapper class to convert to Hex
Output “Thank you for playing!”
Hints
o The ASCII, and Hex are based on the initial value entered Sample output is provided below. Be sure to mimic it exactly.
Sample output is provided below. Be sure to mimic it exactly except for the string
entered, substring length. The layout should be exact. 10% NOTE: Complete your activity and submit it by clicking “Submit Assignment”
Total Percentage
Sample
Your output will vary based on input. 100%

Attachments:

Answers

(11)
Status NEW Posted 04 May 2017 03:05 AM My Price 9.00

-----------

Not Rated(0)