Question: Write a C++ program to enter a student's name form a keyboard, check if the name is Sara Smith. In you program you should have

 Write a C++ program to enter a student's name form a

Write a C++ program to enter a student's name form a keyboard, check if the name is "Sara Smith". In you program you should have the following functions: 1. A function called "enter_name", this function prompts the user to enter student's name and returns the input. true if the name is "Sara Smith" and false if not. 3. A function called "display_result", this function passes the returned value from "check name" function and return "MATCHED" or "NOT MATCHED" Sample of the outpu Enter Your Name: Sara Smith MATCHED .1 1-1 1-11-1.1-1.1-1 :'1-1-1-1 1-1 1-1.1-1-1-1-1-1-1-1-1.1-1.1 1-1 1-1 1-1.1-1.1-1.1-11.1-1 Sample of the output2: Enter Your Name: Sara Lee NOT MATCHED

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!