CS 101 Laboratory Programming Assignment One

Hello Who are You?

Write a program that says "Hello, who are you?" and then requests specific information from the user, including:

  • First initial
  • Last initial
  • Age
  • Weight
  • Height

    The program shall then summarize the information by writing it back to the screen and shall also compute the person's average linear density (pounds per inch) by dividing the person's mass (weight in pounds) by his height (in inches). If you want to use SI (metric system) units, that's acceptable. The linear density should also be printed to the screen.

    Decide on suitable data types and names. Construct your program using structured programming techniques with a programmer's block as discussed in class. Turn in a sample session captured (copied) from the console and commented source code.



    This page established January 21, 1999; last updated January 21, 1999.