Write a program in C++ that allows the user to enter the values to assign a card's suit (commonly implemented as an enumeration — Hearts, Clubs, Diamonds, Spades) from the keyboard. You cannot use a menu. Your program must read the user's choice directly into the card suit variable (of an enum type). (Note: You cannot overload operators for built-in types, but enumerations are, technically, user-defined types. Therefore you can overload input/output operators for th
Write a program in C++ that allows the user to enter the values to assign a card's suit (commonly implemented as an enumeration — Hearts, Clubs, Diamonds, Spades) from the keyboard. You cannot use a menu. Your program must read the user's choice directly into the card suit variable (of an enum type). (Note: You cannot overload operators for built-in types, but enumerations are, technically, user-defined types. Therefore you can overload input/output operators for th
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Write a

Transcribed Image Text:**Card Suit Entering Program Transcript**
Welcome to the Card Suit Entering Program!!!
1. **Prompt:** What is the suit of your card?
**Response:** hearts
**Feedback:** You have a heart! Don't wear it on your sleeve..!
2. **Prompt:** Another card?
**Response:** Y
3. **Prompt:** What is the suit of your card?
**Response:** s
**Feedback:** So, you have a spade! Dig me a hole out back, won't you?
4. **Prompt:** Another card?
**Response:** Y
5. **Prompt:** What is the suit of your card?
**Response:** CLUBS
**Feedback:** Ah, a club! Don't beat me up!!
6. **Prompt:** Another card?
**Response:** Y
7. **Prompt:** What is the suit of your card?
**Response:** diagonal
**Feedback:** I'm sorry, I don't recognize that suit...please try again.
8. **Prompt:** What is the suit of your card?
**Response:** dia
**Feedback:** Ooo...diamonds. Don't cut my monitor with those!
9. **Prompt:** Another card?
**Response:** n
**Conclusion:**
Thank you for using the CSEP!!
Endeavor to have a stimulating day!
---
This program engages users in identifying card suits, providing playful feedback for each recognized suit and inviting further participation until the user decides not to continue. If an unrecognized input is given, it requests the user to retry.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education