The goal of this assignment is to give you some practice writing simple C++ programs and to check your knowledge of some of the main concepts from:Β functions, switch statement, randomness.
C++ allows function ___________ : you can use the same name for more than one function, as long as the functions all have different parameter lists.Β (Fill in the blank.)
In C++, if you want a function that does not return a value -- for example, a function that just prints something to the screen -- you can declare its return type as ...
A ___________ variable is a variable that is declared outside of any function.Β These variables are available everywhere in the program past the point of the variableβs declaration.Β (Fill in the blank.)
The end of the input is signaled when the user enters the string "STOP".Β For example, if the user enters "United Guinea Pig Supporters of America STOP", then the function returns the acronym string, "UGPSoA".Β (The function does not print anything to standard output.)
Write a C++ function weird_sum that takes two integers, βn1βΒ and βn2β. The function returns the sum of βn1β and βn2β, unless their sum is a multiple of 13, in which case the function returns 3 less than their actual sum.
Write a C++ function called first_alpha that takes three string arguments and returns the string that comes first alphabetically from among those three. You may assume that the strings are in all lowercase.