Posts by Matthew Maennche
Assume that word is a string variable. Write a statement to display the message “Today’s Word-Of-The-Day is: ” followed by the value of word on standard output.
LANGUAGE: C++ CHALLENGE: Assume that word is a string variable. Write a statement to display the message “Today’s Word-Of-The-Day is: ” followed by the value of word on standard output.
Read MoreAssume that message is a string variable. Write a statement to display its value on standard output.
LANGUAGE: C++ CHALLENGE: Assume that message is a string variable. Write a statement to display its value on standard output.
Read MoreWrite an expression that concatenates the string variable suffix onto the end of the string variable prefix.
LANGUAGE: C++ CHALLENGE: Write an expression that concatenates the string variable suffix onto the end of the string variable prefix.
Read MoreGiven a string variable word, write a string expression that parenthesizes the value of word. So, if word contains “sadly”, the value of the expression would be the string “(sadly)”
LANGUAGE: C++ CHALLENGE: Given a string variable word, write a string expression that parenthesizes the value of word. So, if word contains “sadly”, the value of the expression would be the string “(sadly)”
Read MoreWrite a string expression consisting of the string “http://” concatenated with the variable’s string value.
LANGUAGE: C++ CHALLENGE: Given a string variable address, write a string expression consisting of the string “http://” concatenated with the variable’s string value. So, if the value of the variable were “www.turingscraft.com”, the value of the expression would be “http://www.turingscraft.com”.
Read MoreDeclare a string variable named oneSpace and initialize it to a string consisting of a single space.
LANGUAGE: C++ CHALLENGE: Declare a string variable named oneSpace and initialize it to a string consisting of a single space.
Read MoreDeclare a string variable named str and initialize it to Hello.
LANGUAGE: C++ CHALLENGE: Declare a string variable named str and initialize it to Hello.
Read MoreDeclare a string variable named empty and initialize it to the empty string.
LANGUAGE: C++ CHALLENGE: Declare a string variable named empty and initialize it to the empty string.
Read MoreDeclare 3 string variables named winner, placed and show.
LANGUAGE: C++ CHALLENGE: Declare 3 string variables named winner, placed and show.
Read MoreDeclare a string variable named mailingAddress.
LANGUAGE: C++ CHALLENGE: Declare a string variable named mailingAddress.
Read MoreDeclare a variable hasPassedTest, and initialize it to true.
LANGUAGE: C++ CHALLENGE: Declare a variable hasPassedTest, and initialize it to true.
Read MoreDeclare a variable isACustomer, suitable for representing a true or false value.
LANGUAGE: C++ CHALLENGE: Declare a variable isACustomer, suitable for representing a true or false value.
Read More