What This Document Is
This document presents a set of practice exercises for CSCI 470, Programming in Java at Northern Illinois University. It focuses on applying Java programming concepts through practical problem-solving. The exercises are designed to reinforce understanding of arrays, methods, and command-line arguments.
Why This Document Matters
These practice exercises are valuable for students enrolled in CSCI 470. They provide opportunities to test and solidify their Java programming skills outside of lectures and assigned homework. Working through these problems helps prepare students for quizzes and exams by building confidence and identifying areas needing further review. This document is intended for self-study and skill development.
Common Limitations or Challenges
This document provides practice *problems*, not complete solutions. It assumes a foundational understanding of Java syntax and core programming concepts. It does not offer detailed explanations of Java fundamentals or debugging assistance. Students will need to utilize course materials, online resources, and potentially instructor support to fully benefit from these exercises.
What This Document Provides
This document includes two main sets of exercises:
* **GradesHistogram:** A problem requiring the creation of a program to display a histogram of grades using arrays and methods. A sample histogram output is provided as a visual guide.
* **Arithmetic:** A problem focused on processing command-line arguments to perform arithmetic operations. The document includes example invocations and explains how to access command-line arguments within a Java program.
* **SumDigits:** A problem focused on processing command-line arguments to sum the digits of a positive integer.
* Hints and notes are included to guide students, along with a discussion of potential issues with shell expansion when using command-line arguments in Windows.
This preview does *not* include the complete code solutions for any of the exercises, nor does it provide detailed step-by-step instructions on how to implement them. It also does not include all the example invocations or the full discussion of Eclipse and NetBeans configuration.