0% found this document useful (0 votes)
7 views2 pages

Lab - 4

Uploaded by

eypelletier
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Lab - 4

Uploaded by

eypelletier
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CEGEP VANIER COLLEGE

Faculty of Science and Technology


Computer Science Technology Department

420-910-VA: Programming Concepts 1

Lab-4: Loops and Files

Activities

Carry out the following exercises and document the respective steps with screenshots
and your own notes.

This lab exercise helps you practice looping structures in Java such as: while,
do…while, nested while, for and nested for statements, text file operations and random
numbers. By the end of this lab, you should be able to write Java programs using these
decision structures for various situations.

INSTRUCTIONS

● Please follow the steps, type your programs, and run the commands individually,
but you can discuss them with your partners/group.
● Put all your results (screenshots) numbered correctly in a text document and
submit the final version as a PDF.
● Please ensure that both the code and the output are clearly visible to read.
Textbook: Starting Out with Java, 6th Edition
Chapter: 4 - Loops and Files
Pages: 262 - 267

In-Class Exercises

Programming Challenges: 1, 4, 6, 10

Assignment

Programming Challenges: 8, 9, 11, 12, 15, 16, 20, 22

You might also like