Question: 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

Need help writing the following code. Language is C++, I'm using vim.

(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 o

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!