Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedJa

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started