Your mission, should you choose to accept it, is to write a program in Java which asks the user to input a string and then outputs the string with every other character removed and states how many times the letter "a" occurs (in capital or lowercase). So for example, if the user inputs Abracadabra
, the program would output the string Arcdba
and the number 5
. Oh, and one more thing. If the user inputs the string "peanut", then instead of removing every other letter and counting the A's, your program should simply respond "butter".
When you've completed the assignment, make sure that the file containing the source code has read permissions set for everyone, and that the compiled class file has read and execute permissions set for everyone. Then send an e-mail to me and Sudhakar (our e-mail addresses are on the syllabus) including the path and the filenames for the source code and the compiled file.
This assignment is due Wednesday, July 16th before class.