Answer:#include <iostream>
using namespace std;
int main()
{
int factorial = 1;
for (int i = 5; i > 0; i--) {
factorial = factorial * i;
}
cout<<factorial;
return 0;
}
Explanation:
<span>The ability to learn a new computer software program is to ADAPT as knowledge of state capitals is to COMMIT.
Learning something new is to adapt and take time to study and learn what needs to be done in order for the task you wish to happen. To have knowledge of a specific thing, is to committing that face to your memory.</span>
Answer: Provided in the explanation section
Explanation:
The Question says;
Identify a logical operation (along
with a corresponding mask) that, when
applied to an input string of 8 bits,
produces an output string of all 0s if and
only if the input string is 10000001.
The Answer (Explanation):
XOR, exclusive OR only gives 1 when both the bits are different.
So, if we want to have all 0s, and the for input only 10000001, then we have only one operation which satisfies this condition - XOR 10000001. AND
with 00000000 would also give 0,
but it would give 0 with all the inputs, not just 10000001.
Cheers i hope this helped !!
Answer:
user_salary = int(input("Please Enter Your Salary : "))
if user_salary in range(10000, 20000):
print("Tax = ",int(user_salary/100*1))
elif user_salary in range(20000, 30000):
print("Tax = ",int(user_salary/100*2))
elif user_salary in range(30000, 40000):
print("Tax = ",int(user_salary/100*3))
else:
print("No Tax!")
Explanation:
<span>data transfer rate..</span>