Answer to Question #146135 in Java | JSP | JSF for Neo mangezi

Question #146135
Write the pseudocode for a program that will continue prompting a user for a value whilst the total of all values remain less than 100. The program must keep track of the number of times the loop executes and display the number of times the loop executed once the loop had finished executi
1
Expert's answer
2020-11-23T06:38:22-0500
counter = 0
total = 0
while total < 100
  print "Enter a value"
  total = total + readValue()
  counter = counter + 1
print counter

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS