Solutions are available here.
Write the functions specified in Horstmann P5.3, 4, 6, 7, 8, and 9. Put all your function definitions into the supplied code scaffold and save it as a single file, called
first_functions.cpp. It doesn't matter what order the function definitions go in, as long as
main() comes last. Don't add to or change the
main() function at all.
first_functions.cpp to test your functions. It should flag any bugs for you. Do you see how the
main() function can be written to test others?
When you are done, save your file
first_functions.cpp. Upload your file as usual.
NOTE: none of your functions should produce any output. All output in the program
first_functions.cpp should be produced by the