6.03 Assignment Instructions
Instructions: Write a program to calculate the monthly Heat Index for a specific city.
1. Create a new project called 6.03 Weather Data in the Mod06
2. Create a class called HeatIndex in the newly created f
4.04 Assignment Instructions
Instructions: Write a program to calculate your heart basal metabolic rate (BMR).
(This program is not difficult, but it does require attention to detail. Use previous
assignments and demo programs as models.)
1. Create a new
08.02 Assignment Instructions
In your English classes, you have probably been asked to compare and contrast the plot, setting,
characters, imagery, vocabulary, metaphors, rhetorical strategies, etc. of different types of
literature (e.g., The Color Purple
15.05 Assignment Instructions
1. Create a folder called 15.05 Assignment in your module 15 assignments folder.
2. Create an interface named Product.
a. Add a method called getName() that returns a string.
b. Add a method called getCost() that returns a do
2.08 Assignment Instructions
Instructions: Write a program to convert American dollars to Mexican pesos, Mexican
pesos to Japanese yen, Japanese yen to Euros, and Euros to American
1. Create a new project called 2.08 Currency
Conversion in the Mo
3.05 Virtual Lecture Notes
The Big Picture
Most of the pre-written code you will use is contained in three packages of the Java API.
java.lang: Provides classes that are fundamental to the design of the Java programming
java.util: Contains the c
3.07 Virtual Lecture Notes (Part 1)
Overview of the Scanner Class
The Scanner class includes methods for accepting user input from the keyboard as indicated
in the following abbreviated Method Summary table.
Notice that the Java API format of the Scanner
3.03 Desk Check: AsciiArt.java
The source code for the AsciiArt.java program is shown below. Scan the program looking for
features you recognize to get the big picture, especially notice the use of String reference variables.
Once you have a clear overvie
3.04 ASCII Art Instructions
Creating ASCII art can be very tedious and time consuming, so keep it simple for your first
First, prepare your artwork.
Make a line drawing of the artwork you want to produce with pencil and paper. This is
3.06 Desk Check: StringPractice.java
The source code for the StringPractice.java program is shown below. You know the drill by
now; look for the big picture, then the details. Highlighted code shows the String methods.
< 1> public class StringPractice
4.02 Food Label Nutrition Facts
Food labels contain information necessary to make
healthy eating choices, but they can be deceptive, unless
you know how to decode the facts. Of all the numbers
listed, there is one that is the key: serving size.
4.02 GPA_v1 Desk Check
The GPA_v1 class is a program designed to calculate the GPA of a student and determine
eligibility to participate in extra curricular activities. A flowchart and corresponding pseudocode
for the design of this program are shown belo
Primitive Data Types: ints
You will need the CalculationsV2 class from the previous lesson for this practice
Create a new project called 2.03 Arithmetic Expressions, in the Mod02 Lessons
Create a new class in the project ca
2.07 Desk Check: Admission_v1.java
The source code for the Admission_v1.java program is shown below. You know the drill by now;
look for the big picture, then the details.
Habits of Successful Computer Programmers
Computer programming is fun, but it can also be frustrating. With time, patience, and
practice, your knowledge will increase and your skills will improve. Your learning curve
will increase more rapidly, however, i
Program Style Guide (Version 2.0)
1.1 Use meaningful names.
Use descriptive names for all identifiers (names of classes, variables and
methods). Avoid ambiguity. Avoid abbreviations. Simple mutator methods
should be named setSomething(.). Simple
1.05 Assignment Instructions
Instructions: Write a program to print information that would be found on a typical
Student Information Card.
1. Create a new project called Student Information in the
Mod01 Assignments folder.
2. Create a class called Student
2.01 Order of Operations Worksheet
Solve each of the following arithmetic expressions using the Order of Operations
(PEMDAS). This is a self check practice assignment, but you will need one or
more of your answers on an upcoming quiz. Show your work for a
2.03 Assignment Instructions
Instructions: Modify CalculationsV4 class by replacing all integer values with integer variables.
1. Create a new project called 2.03 Assignment in the Mod02
2. Create a class called CalculationsV4 i
2.04 Assignment Instructions
Instructions: Revise the CalculationsV5 class to replace all decimal values with
Create a new project called 2.04 Assignment in the Mod02 Assignments folder.
Create a class called CalculationsV
Reserved Words in Java
Primitive Data Types: doubles
You will need the CalculationsV4 class from the previous lesson for this practice session.
Create a new project called 2.04 Arithmetic Expressions, in the Mod02 Lessons
Create a new class called Calcula
2.05 Assignment Instructions
Instructions: Write a program that will convert between different units of measurement.
1. Open the MeasurementConverterV1 class and examine the starter program.
Modify the program to perform the following calculations.
2.07 Assignment Instructions
Instructions: Write a program that will calculate the average grade each time a new
score is added to the total.
1. Create a new project called 2.07 Grades in the Mod02
2. Create a class called GradesV2 in
4.03 Assignment Instructions
Instructions: Write a program to calculate your heart rate target zone.
1. Create a new project called 4.03 Heart Rate Target Zone in
your Mod03 Assignments folder.
2. Create a class called TargetZone in the newly created proj