Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started