13. The following loop is supposed to add the integers 1 through 100, but the loop is wrong (it's off by one). Prove that it is wrong by determining the loop postcondition. (Write the loop invariant for the code as it stands, then use the AND of the loop invariant and the termination condition to find the postcondition.)
sum = 0;
i = 0;
while (i <= 100)
{
i++;
sum = sum + i;
}
Programming Problems
1. Develop a top-down design and write a C++ program that inputs a two-letter abbreviation for one of the 50 states and prints out the full name of the state. If the abbreviation isn't valid, the program should print an error message and ask for an abbreviation again. The names of the 50 states and their abbreviations are: