-
Solve this problems for me, any help will be appreaciated
Design, write in Java, test and document a program (application) that accepts a short (i.e. less
than 20 character) string from the user and prints it out on the screen in a certain pattern. In
response to the user keeping pressing enter, the program moves it across the page to bounce off
column 20 and return. Then the program terminates. Use “*” characters to fill in the unused
columns.
For example, suppose that the user enters “dipsy”. Here is the output; each line of output is in
response to the user pressing the “enter” key.
Please enter your string: dipsy
dipsy**************
*dipsy*************
**dipsy************
***dipsy***********
...etc ...
*************dipsy*
**************dipsy
*************dipsy*
************dipsy**
...etc...
*dipsy*************
dipsy**************
Program terminated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks