Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m using the book An Introduction to Programming with C++ 8 th edition to star

ID: 3741285 • Letter: I

Question

I'm using the book An Introduction to Programming with C++ 8th edition to start learning C++, very little coding experience prior to this. I've come across a question in a self-paced class I'm having trouble on and could really use an answer so that I can begin working backwards and figure out how it was reached. The question is as follows:

1. If. Write a program that recommends a traditional anniversary gift based upon the number of years that the couple has been married. Research the traditional gifts for 5, 10, 15, 20, 25, and 50-year wedding anniversaries. Ask the user for the number for years and output the recommend gift(s). Use the if statement for the selection structure(s).

Explanation / Answer

CIN USED FOR INPUT COUT USED FOR OUTPUT IF ELSE FOR VALIDATION