[cs63201] Homework 1 question 2
Dianne Foreback
dforebac at kent.edu
Wed Feb 17 16:19:03 EST 2016
Hello AOS Class:
Several people have asked about question 1 on homework 1.
As an example, consider the following C++ statements as a program counter
algorithm:
cout << "My first name is Alberto.\n"; //pretend this is statement 1
cout << "My last name is Einsteinary.\n"; //pretend this is statement 2
cout << "My street address is 123 Main"; //pretend this is statement 3
cout << "My city is Kent"; //pretend this is statement 4
...
You need to rewrite this in guarded command notation using statement1,
statement2, ....
You want the first statement and no other statement to be able to be
executed first. When the first statement is finished, you want the second
statement and no other statement to be executed next. When the second
statement is done, you want the third statement and no other statement to
be executed next...
You will need to write actions to adhere to this computation.
Best,
Dianne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://listmail.cs.kent.edu/pipermail/cs63201/attachments/20160217/b09477f5/attachment.html
More information about the cs63201
mailing list