Question: JAVA ONLY This practice will acquaint you with the use of parameter passing and user inputs. You will create a program that prompts the user

JAVA ONLY

This practice will acquaint you with the use of parameter passing and user inputs. You will create a program that prompts the user for any symbol and how many numbers to print the symbol. Your program should perform the following:

  • Prompt the user for a symbol.
  • Prompt the user for how many symbols to draw.
  • A method receives the parameters and prints the number of the symbols specified by the user.

A Sample log of execution is as follow (user inputs are in bold and underlined) IN .java

Input a symbol: $

How many $ would you like to draw? 3

//output

$ $ $

Remark: The symbol $ above is an example. Users can input any symbol.

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!