CS-151 Labs
Lab 1. The First Cup of Java
Due: Sunday, September 25, by 10:00 PM.
In the previous lab we explored the ways of passing user input to our programs through command-line arguments. In this lab we will investigate how we can get user input from the screen prompt and from a file.
After this lab, you should be able to:
- write code in Java;
- read in command line arguments; and
- use
Scanner
to get input from a command prompt and from a file.
Let’s get this programming party started! Unlike most of the remaining labs, this one will consist of a number of small programming assignments to help you to become more fluent with Java programming.
You will create the following Java files for this lab:
Pyramid.java
HiLo.java
EvalAnalysis.java
We provide you with the following input data files:
sample.prn
tae.prn