mkdir lab08-part1
cd lab08-part1
cp -R /class/sce/now/221/labs/catalogs/lab08-part1/* .NOTE: The period . is part of the command. It denotes the current directory (folder).
This "copy command" will copy recursively (because of the -R) all the files and directories from the shared class directory into your directory, effectively duplicating the entire substructure from the class directory into your directory.
lsYou should see
In the directories AI and CI, you will see a Natural subdirectory. Within AI/Natural you will see two files: Power.h and Root.h. Within CI/Natural you will see one file: Root_1.h.
cp /class/sce/now/221/labs/catalogs/lab08-part1/CI/Natural/Power_2.h .NOTE: The period . is part of the command. It denotes the current directory (folder).
global_procedure Root ( alters Natural_Power_2& n, preserves Integer r ); /*! requires r > 0 ensures n^(r) <= #n < (n+1)^(r) !*/
rcpp-submit c221xx lab08-part1where "xx" is to be replaced by lower case letters designating your section (see the course home page for a list).
mkdir lab08-part2
cd lab08-part2
cp -R /class/sce/now/221/labs/catalogs/lab08-part2/* .NOTE: The period . is part of the command. It denotes the current directory (folder).
This "copy command" will copy recursively (because of the -R) all the files and directories from the shared class directory into your directory, effectively duplicating the entire substructure from the class directory into your directory.
lsYou should see
In the directories AI and CI, you will see a Natural subdirectory. Within AI/Natural you will see the file Put_To_With_Commas.h and within CI/Natural you will see the file Put_To_With_Commas_1.h.
Nice_Display < data.txtin a terminal window.
rcpp-submit c221xx lab08-part2where "xx" is to be replaced by lower case letters designating your section (see the course home page for a list).