DUE: Friday, February 13 before 11:00pm
This programming assignment is designed in part for us to determine how well you are able to program. Thus, every part of the program should be your own original work, and should not be substantially similar to other students' code, as well code from books, previous solutions, the web, etc. Like other skills (e.g., surgery), the only way to really learn programming is to do it yourself. Some collaboration is O.K., including discussing the general solution method, and some debugging assistance after a student has tried hard to solve the bug him/herself. We DO encourage you to work with others nearby, so if you get stuck, you can get help. But, you should not show your code to another student in order to help that student. For this assignment, copying code from another source (e.g., copy-and-paste, reading off of another's monitor, etc.) is not considered appropriate collaboration and will have severe consequences.
Turn in online to the appropriate folder for your lab section (e.g., as4_23 for students enrolled in lab section 23). Your assignment may not get graded if it gets turned into the wrong section.
Remember to add your name, login, SID (last 4 digits), lecture and lab section numbers, and email address, to the header of your program
You must turn in programming assignments as C++ source files. Spaces or non-alphanumeric characters in your filename may cause the turnin to not work. A good name for your file is as4.cpp.
Write a program that converts a length from feet and inches to meters and centimeters or from meters and centimeters to feet and inches. The program should ask the user which conversion they want. It should then ask the user for the feet and inches or for the meters and centimeters depending on their choice. Your output should be all whole (integer) numbers.
You should use functions for all sub-tasks of your program. At minimum, you should have 1 input function, 2 calculation functions, and 1 output function.
12 inches = 1 foot = 0.3048 meters, 1 meter = 100 centimeters
The following is a sample output to help you design your program. User input is bold.
Sample:
     This program converts distances from feet and inches to meters and centimeters.