CSU Banner

CS 163/164, 🀨 Fall 2019 🀨

Programming Assignment - P3

Strange Formulas

Due Monday, Sep. 16th at 6:00pm

Late - Tuesday, Sep. 17th at 8:00am


Objectives of this Assignment

  1. To modify an existing program that you already wrote (code maintenance)
  2. to learn how to compartmentalize code into methods

Instructions

Copy your solution from P2: Strange Formulas and name the copy P3.java. Implement this interface. Then, modify your main to call the interface methods to perform the desired calculations. You should move the code that performs the calculations for HBUs and SRM into the new methods, and then call those methods in main. Don't change the interface at all! You only need to code in P3.java.

Sample Output

Your program should print 7 lines, just like P2, as below. The user input is shown in blue.

Alpha Acid? 5.0
Ounces? 2.0
The HBUs are 10.00.
Weight? 1.0
Lovibond? 80.0
Volume? 5.0
The SRM value is 9.5000.

Specifications

Grading Criteria


Submit P3.java to Checkin.


CS Banner
CS Building