Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in c++ that does the following. 1) Prompts the user to have a conversation of indeterminate length with the old deaf professor

Write a program in c++ that does the following.

1) Prompts the user to have a conversation of indeterminate length with the old deaf professor (statements entered into console by user)

2) The conversation starts with the prof saying "HEY KID!"

3) If the user says something with any lowercase letters, the prof responds with "SPEAK UP, KID!""

4) If the user says something with NO lowercase letters, the prof responds with "NO, NOT SINCE 1946!"

5) The first time the user says "GOODBYE!"" the prof says LEAVING SO SOON?

6) If the user says "GOODBYE!" a second time consecutively the prof says "LATER SKATER!" and the program ends. (if the user says something other than GOODBYE! after the first GOODBYE!, the count resets and it's like GOODBYE! was never said)

7) User must be able to enter a full sentence (not just a single word)

8) All statements by the prof must end with a new line / endl

is ther esomeone who can help with this

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago