Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Problem 4: Write a program (40 points) program that gives valentines (with messages, entered by the user) to two people (names of the

Using C++

image text in transcribed

Problem 4: Write a program (40 points) program that gives valentines (with messages, entered by the user) to two people (names of the ames of the people should also be entered by the user). A person does not accept s with the same messages (see sample run) and the program should continue running until exit is entered. Notes: You should create a Valentine class and Person class (feel free to create any other classes you might find useful). + O points if you do put most of the functionality in the classes created or if you code everything in main. Don't forget to indent. Possible Sample Run: Who does this mailbox belong to? Give a valentine? Karl yes Who does this mailbox belong to? Write a message: Andre Message1 Give to first person(1) or second person (2)? Give a valentine? yes Andre currently has 1 valentine(s)! Write a message: Message 1 Give a valentine? Give to first person(1) or second person (2) exit Exiting... Karl currently has 1 valentine(s)! while (answer != exit, I Give a valentine? & sive - Valentine (); yes if langwer! a exit) Write a message: { cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions