Lowercase a is decimal 97 ; upper case is decimal 65
It's easier to think of them in octal, however: a = octal 141, and A is octal 101
octal to binary is easy, each digit is three bits.
141 = 001 100 001
101 = 001 000 001
So, how many bits are changed above?
Complete Question:
Write statements that output variable numComputers as follows. End with a newline. There are 10 computers.
#include <iostream>
using namespace std;
int main()
{
int numComputers;
cin >> numComputers; // Program will be tested with values: 10.
...
return 0;
}
Answer:
cout << "There are ";
cout << numComputers;
cout << " computers." << "\n";
Explanation:
Using three cout statements the string "There are 10 computers." is printed out, notice that the variable numComputers is entered by the user when the program is run. Another way of concatenating an integer variable and string for printout is by the use of the + (plus) operator.