Practical Practice 1: Creating Variables and using cout and cin! It is common practice to read in values and then verify them with output. Getting into the habit of accompanying a cin with both a prompt and a verification can turn out to solve many debugging headaches in the future. At this point, this is also you may know how to do in a C++ program as well and thus it is the focus on today's worksheet. Remember, compile often. Every couple of lines. Don't try to write 30 lines of code before compiling! Test in pieces! 1) Create a new project and new cpp file in your environment. You should be getting very familiar with this process after several attempts. If this is your first attempt, you'll find you struggle with this step. By next practical this will be completely assumed. 2) Create variables of the appropriate type for the following attributes of a student: - name - age - height in inches (or cm) - weight in pounds (or kg) - shoe size - employment status (part-time, full-time or none) - number of courses taken - number of credit hours taken - current GPA First Item Example: string name; 3) Prompt, read in and test! A) Make a prompt for each variable. Ex: "How old are you? "; B) Read in the variable from the console C) Output the value with some other text. Ex: "You are 12 years old." First Item Example: cout << "What is your name? "; //notice the space before the " and no endl cin >> name; cout << "Welcome " << name << endl; 4) After each prompt read in and test, compile and debug. When satisfied that your code is working correctly, go back and add a prompt, read in and test for the next variable. 5) When you're done with all variables, try moving the "test" output statements all to the bottom of the code. How does this change the look and output of your code? When complete, you should have a program that can read in lots of variables and can verify was read in. ---- Preparing for the final project! In the final project here are some variables that will be required: -craft name ex: Challenger -total mass ex: 1995806.42 -fuel mass ex: 1671487.88 -ISP ex: 180.3 -gravity a constant value at 9.80665