Question
Asked by:
sharoncurrie
sharoncurrie
Rating : No Rating
Questions Asked: 20
Tutorials Posted: 0
 

$1.00 Display asterisks

Q:
Write a java application that reads five numbers between 1 and 30. For each number that is read, the program should display the same number of adjacent asterisks
 


   
   
   
   
 
Available Tutorials to this Question
Posted by:
rainman
rainman
Rating (40): A+
Questions Asked: 2
Tutorials Posted: 174, earned $906.64
 

$5.00 Java Program To Display Asterisks. Does Everything Asked. Commented To Teach How It Works. Compiles & Works

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Mar. 01, 2009 at 10:44:32AM
A:
Preview: ... it again<br> while ((number[i] < 1) || (number[i] > 30))<br> {<br> System.out.println("That wasn't between 1 and 30, try again.");<br> System.out.print("Number[" + i + "] = ");<br> number[i] = input.nextInt();<br> }<br> ...

The full tutorial is about 510 words long .
Posted by:
nzpapillon
nzpapillon
Rating (256): A+
Questions Asked: 0
Tutorials Posted: 549, earned $4,988.47
 

$5.00 Working code - fully commented

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Mar. 01, 2009 at 11:14:56AM
A:
Preview: ... are<br>Simple and ...

The full tutorial is about 10 words long plus attachments.

Attachments:
Asterisks.java (1K) (Preview)
Asterisks Sample Output.txt (0K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty