Course Syllabus (subject to change throughout the semester)
Covers Chapters 1 (Introduction), 2 (Fundamentals), and the first part of Chapter 3 (If-Statements)
Scores will be given after grading collectively in class | Correction: Solution on Page 3 should be updated (done in class)
At 10:30AM-12:30PM on Wednesday, May 23rd we will go over solutions. (See calendar)
Homework Assignments are submitted through our course Canvas site
The textbook used for this course is referenced in the Syllabus and is available on 2-hour reserve in the library
Programming Lab 1: Hour of Code Programming Puzzles due Monday 1/22/18 | raw
posted 1/24/18Basic Input Output
posted 2/4/18Decision Structures
posted 2/20/18DeMorgan's Law and Random Number Generation
posted 5/6/18File I/O
HelloWorld.java | Sample console output
Echo.java | Using the Scanner class for console input
CalcFormatDemo.java: Demonstrates calculations and formatting with printf.
StringDemo.java: Shows various ways to manipulate strings.
Interest.java calculates interest on an investment at one of 2 rates
MoreInterest.java A version of the above program, with more if-statements, more interest rates.
BooleanApp.java demonstrates Boolean values and multi-way if-statements
Invest.java uses a loop to add up interest on an investment over time
InvestAgain.java: Variation of above Invest program that allows user to repeat the calculation as many times as user wants.
Retire.java calculates results of monthly retirement savings, using printf for formatting output
NestedControlStructure.java inputs and shows student info with if-else-if inside loop
NestedAlt.java: Alternate version of above using "break"
AddMoney.java demonstrates switch statements, for loops, and boolean varaibles
FunInterest.java demonstrates the definition and use of a method.
RandomExerciseMethod.java - a variation of the In-class exercise solution to generate random numbers: uses a void method.
InflationBetter.java - Uses several methods, calculates inflation rate.
Groups.java - demonstrates using shared static class variables and output with nested loops.
GroupsBetter.java - Variation of above program, without shared static class variable for numGroups.
AddMoneyFun.java uses 2 methods with loops, switch statements, etc. (a variation of the AddMoney.java program above)
Blackjack.java uses several static methods and instance varaibles.
BasicArray.java - Inputs and averages an array of doubles.
ArrayElementArguments.java - Demonstrates how to pass an element of an array into a method.
ArrayParam.java - Demonstrates how array parameters work
ReturnArray.java - shows how to create an array in a function and return it
SearchGroup.java - Sequential search example, searches an array of student IDs to see if user-entered ID is in the array.
ArrayExp.java - Inputs and sorts an array of ints.
SortCommandLine.java Command-line argument variation of ArrayExp.java uses command-line to specify a list of names, searches that list to find a name.
QuarterlySales.java - a 2-Dimensional array example
Pixels.java - Models screen pixels with a 2-D array.
JaggedArray.java - Shows how a 2-D array can be jagged: have different numbers of columns for each row. Inputs test scores for courses - each course can have a different number of tests.