Question: 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 solveThis 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 50

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!