labexam3 c++ simulation v1