Question: Javascript Ja Programming Assignment #6: Loop-Dee-Loop For this project you will write a program that will reverse the letters in a person's name. It will

Javascript

Javascript Ja Programming Assignment #6: Loop-Dee-Loop For this project you will writea program that will reverse the letters in a person's name. ItJa

Programming Assignment #6: Loop-Dee-Loop For this project you will write a program that will reverse the letters in a person's name. It will then accept a positive integer n from the user, and produce three different pictures based on n: a hollow n-by-n square, a hollow n-by-n square with a diagonal extending from the upper-left to lower right, and finally an "hour-glass" shape with a height and width of n. Below is some sample output your program should produce: Please enter your first name: Blank Blank Please enter a positive integer: 12 ************ ************ ******** Note that your code should work for n = 1 and n = 2 as well the squares just won't be hollow, and all three pictures will look identical. Functional Requirements You accept a person's name and a positive integer of their choice using a Scanner object. You successfully reverse the letters in that person's name, and print the reversed name. You will produce the three pictures (the hollow square, the square with a slash, and the hourglass) as described above. 0 Methodological Requirements You must use at least one loop in a meaningful way (you'll likely need several loops). Your code is sufficiently commented. Programming Assignment #6: Loop-Dee-Loop For this project you will write a program that will reverse the letters in a person's name. It will then accept a positive integer n from the user, and produce three different pictures based on n: a hollow n-by-n square, a hollow n-by-n square with a diagonal extending from the upper-left to lower right, and finally an "hour-glass" shape with a height and width of n. Below is some sample output your program should produce: Please enter your first name: Blank Blank Please enter a positive integer: 12 ************ ************ ******** Note that your code should work for n = 1 and n = 2 as well the squares just won't be hollow, and all three pictures will look identical. Functional Requirements You accept a person's name and a positive integer of their choice using a Scanner object. You successfully reverse the letters in that person's name, and print the reversed name. You will produce the three pictures (the hollow square, the square with a slash, and the hourglass) as described above. 0 Methodological Requirements You must use at least one loop in a meaningful way (you'll likely need several loops). Your code is sufficiently commented

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!