| CS182 -- Lab 2: Water to Steam |
|
|
OverviewIn this lab, you should develop skills using conditional statements. ProceduresWrite a program that calculates the number of calories needed to convert a specified amount of water at a given temperature to water vapor. The user should be asked to enter a mass and temperature, and the program should display the number of calories needed to convert the water to water vapor. You may assume that the water is sitting on a boat in the ocean on the equator. It takes one calorie to heat a gram of water one degree Celsius. It takes 540 calories to convert one gram of water at 100 degrees Celsius to one gram of water vapor at 100 degrees Celsius. For extra credit (perhaps a couple of points), you may wish to allow your program to be able to calculate the number of calories required to convert ice at a given temperature into water vapor. Lab report (due 11:00pm, the day prior to week 4 lab)The lab report should be in your own words and self-contained. By self-contained I mean that it should be possible for someone to understand what you did and why without seeing anything other than your report. Your report should include:
As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost. It may be wise to keep a diskette backup as well. Your grade will depend on quality of design, clarity of code and documentation, as well as whether your program produces the correct results. If you have any questions, consult your instructor. |
| © 2001 Dr. Christopher C. Taylor | Office: CC-27C | Phone: 277-7339 | Last Updated: January 3, 2001 |
| I am responsible for all content posted on these pages; MSOE is welcome to share these opinions but may not want to. | |||