Question: Write a Java program A 2 p 2 . java with a public class A 2 p 2 and no named packages that accepts a

Write a Java program A2p2.java with a public class A2p2 and no named packages that accepts a command line argument m that is assumed to be a multiple of 60(e.g.60,120,etc). Generate a string of m random upper case English characters and store them in a char array. Design three additional methods other than the main method each of which is supposed to convert one-third of the m chars in your array in place into a backward-offset lower case version (i.e.A->z,B->a,C->b,...,Y->x,Z->y). Print out the string (i.e. all array elements) both before and after conversion on two separate lines. You can choose which one-third of the array each of the three methods will convert, as long as their combined work converts all m chars in the array. Can you imagine how you would change your program if four additional methods should be created to do the conversion, each of which converts one-fourth of the m chars? What about five methods? Six methods?which converts one-fourth of the m chars? What about five methods? Six methods? Just submit the three-method version. A sample run can be seen later.
 Write a Java program A2p2.java with a public class A2p2 and

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!