4 Matching Annotations
  1. Apr 2021
    1. cout << "n was even when I checked it ";

      but a space was added in the cout statment. so, A is correct "n was even when I checked it x was positive when I checked it"

  2. Mar 2021
    1. Activity: 4.7.2 Guessing Game. (recursion_AC_2)

      This code causes a "Segmentation fault (core dumped)" and I can't gess how to solve it. There are instructions I don't understand yet: the use of lib cstdlib the reserved word cin, time, srand...

    1. Q-4: Your school uses a system to arrange students in a large stadium using their initials. Look at the function definition below. Where would a student with the initials “MZ” be seated?

      I don't undestand how you can suddenly compare a char value with a letter without quotes. Perhaps you shoud compare with 'm' and not m....

    2. Activity: 4.5.1 Classifying an Integer (nested_conditionals_AC_1)

      You have an error, after the second else, you will need a second } to close the first else