• Post Reply Bookmark Topic Watch Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page was migrated from a javaranch.com.jsp


     
     
       
     
     
       
     
   
 
 
   
     
       Assignment Java-1a (Hundred)
       Purpose:  To learn how to follow the style guide, how to get the argument
       from the command line, how to use variables, how to concatenate strings,
       how to use a loop effectively, and how to output to the screen (standard out).


       

Write a program that will read in a name from the command line and write it out 100 times.



       

In other words, I want to type



       

         

and see


       <!-- <br />         <br />        -->
         

               
             

         

To do this, you will need to know how to:
         



       

If you have completed the first pass of the assignment, take a look at these
       'common mistakes' before you submit it.
       It might save you a lot of time.




       

Hint: Instructor's solution is 20 lines long, including 2 blank lines. **



       Assignment Java-1b (Hundred)
       Purpose: To gain a little experience with math in Java.

       

Formatting is not necessary, but modify Java-1a so words are never split up.
       Assume that the console is 80 characters wide.



       

In other words, I want to type



       

         

and see


         <!-- <br />           <br />        -->
         

               
             

       

Hint: Instructor's solution is 26 lines long, including 2 blank lines and one comment line.



       

** Your assignment will most likely not be the same size as the instructor's solution.
       This information is provided because some students have turned in assignments that are
       far more complex than required.  This information gives you an idea of how sophisticated
       your solution should be.



       

After you have tied up this assignment, lasso the next one:  


     
   
 
       



 

Page maintained by Marilyn de Queiroz


 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!