Answer:
C++.
Explanation:
#include <iostream>
#include <string>
using namespace std;
////////////////////////////////////////////////////////////////////////////
int sumDigits(string alphanumeric) {
if (alphanumeric.length() == 1) {
if ((int(alphanumeric[0]) >= 48) && (int(alphanumeric[0]) <= 57)) {
cout<<int(alphanumeric[0]) - 48<<endl;
return (int(alphanumeric[0]) - 48);
}
else
return 0;
}
else {
if ((int(alphanumeric[0]) >= 48) && (int(alphanumeric[0]) <= 57)) {
cout<<int(alphanumeric[0]) - 48<<endl;
return int(alphanumeric[0]) - 48 + sumDigits(alphanumeric.substr(1, alphanumeric.length()-1));
}
else
return 0 + sumDigits(alphanumeric.substr(1, alphanumeric.length()-1));
}
}
////////////////////////////////////////////////////////////////////////////
int main() {
cout<<"Sum: "<<sumDigits("ab1c2d3e54");
return 0;
}
Answer:
So, you won't be able to install driver via a file because device manager can't find it. Just reinstall windows if that happens lol.
Answer:
Please find the program in attachment.
The sample program is self explanatory, and with all the functions being listed as shown above.
And the sample program can be extended to allow three chances for authentication, and for all with addition of a simple for loop.
Explanation:
The code is self explanatory.
7 1/6
43 goes into 6 7 times with one left over. 6x7= 42 43-42=1
7 1/6