cp ~gpruesse/make159 .(That command ends with a space and then a period, in case it is hard to see.) Do an "ls" to make sure it is copied over. If you are curious, cat it to the screen, or you can "view make159". The "view" command calls vi in read-only mode. You can exit "view" by hitting ZZ, just like in usual vi.
make -f make159 csci159/lab1You might as well create the directory for lab2 with this similar command, to be executed in your top directory:
make -f make159 csci159/lab2This makefile will create a new directory csci159 with a subdirectory called lab1 (and then lab2), and it will populate that directory with some files that your instructor has provided. cd into that lab1 directory. Do an "ls". For this first lab, lab1, you are provided with a README. Read the README. On your first quiz you will be asked about the contents of the README. You are also provided, in directory lab1, with files called makefile, sizes.cpp, and average3.cpp. cat sizes.cpp; you can see that it is empty of all but the #include; the main is empty.
cp ../../csci159dev/lab1/sizes.cpp . cp ../../csci159dev/lab1/average3.cpp .(Those commands end with a space and a dot.) Check that the files are in your directory by doing an "ls". Check that the files have overwritten you old files using Don't copy over the old makefile, because you have a new one that is provided for you. You can cat it to the screen if you like.
make sizesxThen do the same for average3x. These will check that your code compiles correctly.
make cleanThis cleans up your directory of old executables. "ls" to see what remains.
make submitIf successful, you will see a variety of updates. The git version control program is copying your updated directory contents to a location where the instructor can view and mark it. There is a deadline programmed into git, so if you try to submit after the deadline, it won't let you. Up until that deadline, you can submit and it will keep track of the most recent version, which is the one your instructor will look at.
What is your Low Density Lipoprotein (LDL) cholesterol, in mg/dL? 185
What is your High Density Lipoprotein cholesterol (HDL) in mg/dL? 45
What is your sex (M/F)? F
Your LDL is higher than the normal range (<=100 mg/dL is considered healthy).
Your HDL is lower than the healthy range for females (>=50 mg/dL),
Your LDL to HDL ratio is 4.1, which is above the healthy range (<=2.5 is considered healthy).
It is advisable to speak with a doctor if any of these values are outside the healthy range.
Alternative reports from the program would be:
make lab2xDo an "ls" to see that lab2x is in your directory. Test it.