here are the solutions:
1 and 2: line #33 & 53 }while(again = 'y'); if(a=b)
there is a logical error.
the = will alaways return true.
this is because the compiler sees it as an assignment.
the = should be == to make it a comparison.
3: line #22 randChar = rand()%4;
the range of comparible characters is not a,b,c
instead it has a range of: null, ?, ?, ?
to fix this add 'a' or 97 to get it in the range of a-d
4: line #2 #include <ctime>
This is not the error but a hint.
You can write a line that initializes the random number
based on the system time.
srand(time(0));
This allows you to be able to run the app without having it
choose the same random number every time.
Congrats to: sablefoxx and TheWarden for finding errors 1, 2, and 3
Here is the Next Challenge:
Wrte a Program that
1. an integer is inputed
2. the number is converted to binary
3. output the binary number
Bonus: make it also do Octal and/or Hexadecimal