Top Posters
Since Sunday
p
4
h
4
c
4
d
3
3
c
3
t
3
u
3
A
3
B
3
j
3
s
3
New Topic  
Izaganag Izaganag
wrote...
Posts: 686
Rep: 2 0
8 years ago
What does the following code do?  Assume list is an array of int values, temp is some previously initialized int value, and c is an int initialized to 0.
   for (j=0; j < list.length; j++)
         if (list[j] < temp) c++;
A) It finds the smallest value and stores it in temp
B) It counts the number of elements equal to the smallest value in list
C) It finds the largest value and stores it in temp
D) It sorts the values in list to be in ascending order
E) It counts the number of elements in list that are less than temp
Textbook 
Java Software Solutions: Foundations of Program Design

Java Software Solutions: Foundations of Program Design


Edition: 7th
Authors:
Read 189 times
3 Replies
Replies
Answer verified by a subject expert
habibtihabibti
wrote...
Top Poster
Posts: 1486
8 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Izaganag Author
wrote...
8 years ago
Yeah, that works Slight Smile Thank you.
wrote...
8 years ago
Don't forget to press the Mark as SOLVED Slight Smile Otherwise I don't get credit Frowning Face
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1139 People Browsing
Related Images
  
 571
  
 327
  
 331
Your Opinion
Which of the following is the best resource to supplement your studies:
Votes: 300