c++

solve the h.w and tutorial questions by writing the code and the flowchart