Homework 8 (C++)
Homework 8 (C++)
Homework 8 (C++)
train,or(q)uit?
p
Nexttrain:Engine
Currenttrain:1
Previoustrain:4
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
a
Whichtrainisthis?
3
Nexttrain:Engine
Currenttrain:1
Previoustrain:3
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
a
Whichtrainisthis?
2
Nexttrain:Engine
Currenttrain:1
Previoustrain:2
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
p
Nexttrain:1
Currenttrain:2
Previoustrain:3
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
p
Nexttrain:2
Currenttrain:3
Previoustrain:4
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
p
Nexttrain:3
Currenttrain:4
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
p
Nexttrain:3
Currenttrain:4
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
a
Whichtrainisthis?
5
Nexttrain:3
Currenttrain:4
Previoustrain:5
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
p
Nexttrain:4
Currenttrain:5
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
n
Nexttrain:3
Currenttrain:4
Previoustrain:5
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
n
Nexttrain:2
Currenttrain:3
Previoustrain:4
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
n
Nexttrain:1
Currenttrain:2
Previoustrain:3
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
n
Nexttrain:Engine
Currenttrain:1
Previoustrain:2
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
n
Currenttrain:Engine
Previoustrain:1
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,or(q)uit?
q
When you are done, name the source code file <username>_8A.cpp. Here you replace
<username> with your U of M email address; for example, if your email address is
smithx1234@umn.edu, your file should be named smithx1234_8A.cpp. Then submit your
program using the HW 8 Problem A submission link in Moodle.
p
Nexttrain:1
Currenttrain:2
Previoustrain:TERIBAD
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,(d)etachatrain,or(q)uit?
d
Nexttrain:1
Currenttrain:2
Previoustrain:3
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,(d)etachatrain,or(q)uit?
d
Nexttrain:1
Currenttrain:2
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,(d)etachatrain,or(q)uit?
d
Nexttrain:1
Currenttrain:2
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,(d)etachatrain,or(q)uit?
n
Nexttrain:Engine
Currenttrain:1
Previoustrain:2
Doyouwishtogotothe(n)exttrain,(p)revioustrain,(a)dda
train,(d)etachatrain,or(q)uit?
q
When you are done, name the source code file <username>_8B.cpp. Here you replace
<username> with your U of M email address; for example, if your email address is
smithx1234@umn.edu, your file should be named smithx1234_8B.cpp. Then submit your
program using the HW 8 Problem B submission link in Moodle.