Project #1

Due: 10 PM, Thursday 1/11 This assignment is an exercise for you to enter, compile and run a simple C++ program by SSH-ing into the undergrad computer lab. Look over the using SSH handout if you're having trouble. For each part you must turn-in the following: Weighing In [10 points]

Write a program which will output the ideal weight for a male and a female based on height and the following formulas. The input to the program should be the height of a person, in feet and inches. The output should be the ideal male and female weights, in pounds, appropriately labelled. You can assume that all inputs are between 5 and 7 feet. For men: weight is 115 lbs for the first 5 feet and 7 pounds for every inch after that. For women: weight is 100 lbs for the first 5 feet and 5 pounds for every inch after that. [Disclaimer: this project is in no way intended to give real medical advice to anyone.] Be sure to use constants for literal values that are part of the problem, and good variable names. You must name your program file pg1a.cpp.