1. Engineering
  2. Computer Science
  3. 954 note 12 etails do not turnin your solution before...

Question: 954 note 12 etails do not turnin your solution before...

Question details

9:54 Note @12 etails Do NOT turnin your solution before 9:00am on 1/29/2019. To be completed individually. Parsing an Input Line Write a program that prompts the user to supply four items on the same line separated by space. The first item should be an integer; The second item should be a real number; The third and the fourth items should be strings. Name your class Parser. You can assume that the user followed the guidelines. Your program should process each of the items as follows.
9:54 Note @12 Item 1 (integer: The program should determine whether the input integer is even. If the number is even, your program should print on the screen true. If the number is odd, your program should print false. Hints: 1. You can use the modulo operator % to determine whether the number is even. 2. You do not need to use if-statements in order to print the correct output ltem 2 (Real): The program should print on the screen the result of raising this real number to the fifth power. Hint 1. Use a method from the Math class. tem 3 (String): We will refer to the first character of the string as FIRST. For Updated Just Now
9:54 Note @12 he program should print on the screen the result of raising this real number to the fifth power Hint: 1. Use a method from the Math class. We will refer to the first character of the string as FIRST. For instance, in the string walk, FIRST is the character w.The program all occurrences of FIRST in the string with the character that comes next in the ASCII Table. For example, character Q should be replaced with R, Z should be replaced with I, g should be replaced with h, and z should be replaced with . Your program should print on the screen the new string that is produced after the replacement of the character should replace Hints: 1. Use a method from the String class. You do not need to use loops. Updated Just Now
9:54 Note @12 Table. For example, character Q should be replaced with R, 2 should be replaced with t, g should be replaced with h, and z should be replaced with f. Your program should print on the screen the new string that is produced after the replacement of the character. Hints: 1. Use a method from the String class. You do not need to use loops. 2. Take advantage of the relationship between the integer values of consecutive characters in the ASCII Table ltem 4 (String): Your program should turn all characters of the string to upper case and print on the screen the resulting string Hint 1. Use a method from the String class. Updated Just Now
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution