Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help writing the following code. Language is C++, I'm using vim. Thanks (6 pts total) Design First (3 pts), Then Write Code (3 pts)!!!
Need help writing the following code. Language is C++, I'm using vim. Thanks
(6 pts total) Design First (3 pts), Then Write Code (3 pts)!!! To help you practice functions for Assignment #4, you will write a short program that asks the user to enter a string (get_string(), makes a copy of the string, takes the copy and changes all non-space letters to dashes (set_replace_string)), and gets a letter from the user to search and replace returning the number of letters found (get _search_replace(0). You should design first... You can have more functions, but you must have at least the three below with the EXACT function prototypes Each of your functions should have the proper function headers/descriptions void get_string(string); void set_replace_string(string, string *) int get_search_replace(string, string &) Write the function headers/descriptions for each of the functions above, as well as all the functions you create! This includes information about parameters, return values, and pre/post conditions. Design - Give as much detail as possible for the main function and all the functions above. o Why do the function prototypes have the specific parameter types on them? o Why do the functions have void or a return value? o How do all the functions interact together? Testing Provide testing values with expected results. What do you plan to use as bad values? Good values? What do you expect to happen with bad values? Good values? o oStep 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