Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a Java problem. Problem In this problem, you will solve a totally meaningless task that has basically no use outside of practicing what
This is a Java problem.
Problem In this problem, you will solve a totally meaningless task that has basically no use outside of practicing what you just read. Your program should expect the following inputs: text, a String-Any arbitrary text leftChar,a char - Any arbitrary character rightchar, a char - Any arbitrary character (again) charToRemove, a char - Acharacter to remove from text (guaranteed to be present) width, an int - The total width of the final output . Your program should then output in the following format: LeftPaddingl textlrightPadding where text has had all instances of charToRemove removed, and is converted to upper case. The left and right padding is added such that both sides are approximately equal in length, and make the total length of the output equal to width. If the number of padding characters needed is odd, the extra character should go on the right side (you do not need branching to achieve this). The input is guaranteed to need extra padding. Again, do not print the "| "character in your output. Example execution Enter inputs: Hello World 50Step 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