CMIS 102A
Midterm exam
Open book, open notes, and your existing code but no human help or
Internet help.
Write an applet that does what the MidtermTemp applet on the class
web site does. Run the applet several times to learn what it does.
The formula for converting fahrenheit (F) to celsius (C) is
C = 5(F-32)/9
The formula for converting celsius (C) to fahrenheit (F) is
F = 9C/5+32
The formula for converting celsius (C) to Kelvin (K) is
K = C + 273
Any mathematically equivalent formulas are acceptable, of course.
The descriptive word is determined by this:
celsius < 5: Cold
5 < celsius < 15: Cool
15 < celsius < 25: Warm
celsius > 25: Hot
The applet must have the same proportions whatever the applet is sized
or resized at (i.e. must fill the entire applet area whatever the size
of the applet area).
Build this up piece by piece; partial credit is given.
There are many ways to build this up piece by piece. For example, the
graphical drawings are mostly separate from the inputting and
calculating logic.
If the piece you're working on isn't getting done, work on another
piece. Don't get stuck on one part and make no progress at all.
Upload the .html and .class files to your web site and put a link to
the applet in your index.html
Hand in a printout of the .java file by 7:30