CSCI 1312 (Introduction to Programming for Engineering), Fall 2018:
Homework 2 Solution (Programming Problems)
(15 points)
Refer to assignment for description of problem.
Solution:
Here are two solutions:
fahrenheit-to-celsius.c
(uses integers).
fahrenheit-to-celsius-float.c
(uses floating-point numbers).
(15 points)
Refer to assignment for description of problem.
Solution:
Here are three (!) solutions.
seconds-v1.c
(modeled after the counting-change problem from class).
seconds-v2.c
(taking another approach).
Berna Massingill
2018-09-15