Class and structure C++ Program?

Hey, i just started with c++ programming and i am a total noob. I had this quiz today and i did very bad. The teacher said he wouldnt give us the answers. If someone could help me with the code so i can crosscheck and find out my mistakes, that would be very helpful. The picture of the quiz question is given. Thanks.
1 answer 1