Problem
Complete at least 2 of the following programming objectives as a review for the midterm exam:
Objective I: Lets have some fun with ASCII art. Write a program which prints your favorite ASCII art. It's a very time consuming process. However there are ways around it. For the sake of the assignment,
Choose your favorite ASCII art from the below website. I chose Star wars. However, feel free to choose your favorite ASCII art (nothing which violates BCTC policy please..be nice ).
i. Write a java program to print the ascii art on the console. Use the "MyAsciiArtExample" class in the sample code provided as a template.
ii. Send me the screenshot of the ASCII Art and the java source file. Please do not forget to leave credits for the artist and the website in your console output. I have included a sample program "MyAsciiArtExample" in the sample code included. Also here is the video how I utilized the website to print the ASCII art.
Objective II : Let's review some basic input-output and formatting. Submit the Java source file containing a Java program which
i. prompts the user to enter the name of the person.
ii. Stores the name of person in a string variable.
iii. Prompts the user to enter the age of the person.
iv. Stores the age of the person in a variable of type Integer.
v. Retrieve each ascii value of each character of the stored name (which was done in step 2).
vi. To get the ascii value of a character value...just cast it to int. for example.
Char c = 'a';
int asciival = (int) c;
i. Calculate the sum of all ascii values of each character in the name and store it in a variable of type double.
ii. Divide the calculated sum of ascii values by the stored age of the person and store it in a variable of type double.
iii. Display the above calculated value as "Astrological Code" with decimal points upto 2 places.
iv. Display all the other values stored and calculated above.
Objective III: Submit the Java source file containing a Java program to prompt the user to enter two different numbers of type integers, find the greater number of the two without using '>', '<' operators and display it? (Feel free to browse the web regarding Objective 3 problem for solution research.Before you hit the web for a logical solution...think about it first and see if you can figure it out yourself. This program is a good brain teaser. So spend sometime on it)
Objective IV: Submit the Java source file containing a Java programto prompt the user to enter a string with a minimum character length of 10. The program must find any repeating strings in the entered string, count of repetition for each string and display the result.