|
-
January 22nd, 2010, 12:07 PM
#1
array assignmnet =(
hi
i'm saudi student
FRESHMEN IN MIS =)
i have an assignment and i can't get it =(
the Q IS
given the following array
int [] array={10,19,5,1,7};
write a java program using array to display its data graphically by plotting each numeric value as abar of asterisks (*) as shown in the diagram
element value histogram
0 10 **********
1 19 *******************
2 5 *****
3 1 *
4 7 *******
I Understand that i need to declare and use for loop
but i don't know how to convert the value to *
i want some help please =)
regard ..
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
|
Click Here to Expand Forum to Full Width
|