Question
C++ language 1. Update your program to now check to see if you have already entered that name in previous records. Yes, this assumes that
C++ language
1. Update your program to now check to see if you have already entered that name in previous records. Yes, this assumes that there is only ever one person with whatever name, but well pretend thats okay. When you get the user input, youll have to loop through all of the previous entries to compare names (strcmp is pretty excellent for this). If the name has already been entered, display a message and make the user enter another name. Yes, this too should be checked.
Example Output How many records would you like? 2 What is the name for record 1? TJ What is the age for record 1? 38 What is the name for record 2? TJ THERE CAN BE ONLY ONE. What is the name for record 2? Not TJ
2. Again, ask the user for how many structures they would like. Once you get the number, allocate an array of pointers. Once they have been created, proceed to loop through and get the data as usual, and display it back to the screen. The output should look very similar to what weve already been doing.
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