UOP PRG 420 Week 3 DQ 1 .pdf
Original filename: UOP PRG 420 Week 3 DQ 1.pdf
This PDF 1.5 document has been generated by Microsoft® Office Word 2007, and has been sent on pdf-archive.com on 15/03/2017 at 05:54, from IP address 43.224.x.x.
The current document download page has been viewed 161 times.
File size: 216 KB (2 pages).
Privacy: public file
Download original PDF file
UOP PRG 420 Week 3 DQ 1
To purchase this material click below link
For more classes visit
Select and complete one of the following activities:
Convert the following program from for loop to while loop.
public static void main (String  args)
int sum = 0;
for (int i = 1; i <= 1000; i++)
sum = sum + i;
Compare the efficiency between a for loop and a while loop in the same program.
Your program should be able to tell if a for loop is faster than a while-loop at the end
of the program. Include the result of your run with the information on which one is