Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This method should take in two ints as inputs/parameters, one representing the width of the rectangle and another representing its length. The method should use

image text in transcribedimage text in transcribed

This method should take in two ints as inputs/parameters, one representing the width of the rectangle and another representing its length. The method should use a for loop to print out two rectangles side by side (2 spaces between) according to the input dimensions, one fully filled rectangle made of asterisks and one hollow rectangle made of asterisks. An example of this method run with a width of 5 and a length of 7 can be seen in Figure 2. Figure 2: An example of the rectangleMaker method run with a width of 5 and a length of 7 3. Public static int exitCheck This method will take in a Scanner as an input parameter. The method will prompt the user with "Are you sure you would like to exit? Type 'Exit' to exit the program". The method will save the user's response and, if the user typed 'Exit', will return a '1'. Otherwise, the method should return a . 4. Public static void assignment9Menu This method is going to act as a menu for this assignment. It should have no inputs/parameters. This method should print out a menu like that seen in Figure3 Welcome To Assignment 9: Please Choose An Option: 1. Guess The Number Challenge 2. Make A Rectangle 3. Exit Figure 3: A figure showing the basic layout of this method's "menu". Use a do while loop to keep this menu running until the user chooses to exit. Option 1 should allow the user to do the 'Guess The Number Challenge' using a previously- created method. Option 2 should allow the user to make two rectangles of various width and height depending on user input, using a previous method to create the shapes. Option 3 should ask the user if they are sure they want to quit using a previously created method. This is the option that should end the loop. If any other option is entered, a message stating "Please choose an available option." should print to the console. Unless shutting down, the menu should print back out at the top of every loop Once all methods are completed, check to make sure that you are following all of the guidelines in the coding standards for this class (indenting, commenting, headers, method headers). After fully fnnishing, save the Java file to submit on eCampus

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

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

Does it have at least one-inch margins?

Answered: 1 week ago