Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming Project: Double Letters Description: Write a program in a single class called DoubleLetters that does the following: The program should read in a single
Programming Project: Double Letters Description: Write a program in a single class called DoubleLetters that does the following: The program should read in a single line of text from the keyboard. It should then print to the console the same line of text with these changes: Letters-upper or lower case- should be doubled. Letters are the characters a through z (lower case), and A through Z (upper case). Exclamation points (!) should be tripled. All other characters appear as they do in the input string. Objectives: The objectives of this assignment are to: . Be able to read text input from the keyboard using a scanner object. . Be able to traverse the characters in a String using String class methods and a for loop. .Be able to use an if statement in a loop. Examples Use these examples to test your code Example1 Enter a line of text > Hey My car can't movel l Then your program should print: HlHeeyyI1 MMyy ccaarr ccaann'tt mmooveeL Example 2: if the input text is: Enter a line of text > Hello, I have 9 of them! Then your program should print
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started