CSE 222 Closed Lab #3
Please follow these steps in closed lab:
-
Select a partner to work with on the closed lab exercise and decide whose
account to use for it. After you have completed the closed lab exercise,
the person whose account has been used may e-mail to his/her partner the
file(s) containing the solution that was devised by the partnership.
-
Copy the initial closed lab #3 files to your own working directory and get
into that directory:
cp -R /class/sce/now/222/closed-labs/closed-lab03/Closed_Lab03/ .
cd Closed_Lab03
-
Look through the file Pizza_Test.cpp,
which you may view as a test driver for some Partial_Map client
operations. Get an idea of the overall structure and see what main
does.
-
Complete the instantiation statement in the code. Build the project
to make sure the code so far compiles, but do not run the program yet;
it's missing some operation bodies so it's unlikely to do anything useful.
-
Fill in the bodies of the operations Get_Price_Map and Get_One_Order,
which you should have written for the homework; and the body of Put_Price.
Build the project and, finally, run the program from an xterm window and
redirect input from the file orders.txt.
-
Let your instructor know when you are satisfied all operations work satisfactorily,
in order to get credit for this closed lab.