Question: Given a string variable word that has been declared and given a value, write a short code block that tests whether the variable holds the

Given a string variable word that has been declared and given a value, write a short code block that tests whether the variable holds the string "programmer . If it does, print the message "Get coding... " , otherwise print "Before" or "After" depending on whether the word comes before or after programmer in the dictionary. In all cases, end with a newline Submit History: x (6 of 6) 02/22/19 05:51:13 1, if (word-"programmer"){ cout"Get coding
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
