Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java class ( called ShowNum ) that displays the same number of asterisks ( row and columns ) as is input in 2
Write a Java class called ShowNum that displays the same number of asterisks row and columns as is input in numbers.
Your class should have a default constructor number is number is and
another constructor that inputs numbers integers
You'll need accessor methods for the numbers and a display method that displays as follows:
Input:
Demo the class in a client called ShowNumClient that allows the user to run the program as many times as they want enter number and use display method
The user will signal with a sentinel when they want to terminate the client.
Make sure that each number entered in the client is between and
Submit BOTH java files here.
Remember: The client class ShowNumClientjava is the one with the main method and runsdemo the class ShowNumjava The class with no main only consists of instance variables and their methods. In order to call those methods from the class withthe main method we have to instantiatecreate an object of the class ShowNum in the client class and then use that object to call the methods of the class ShowNum using the dot operator.
I have been having an issue where when I make a new project on the Eclipse Java IDE it leaves a module line that when deleted it says stack overflow and crashes the program. For example if I make a project called test it shows "module:test" I was told that line is not needed and was part of why my programs do not run correctly. If possible in addition to the java problems to help with a work around to avoid that. Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started