Answer:
a.
Explanation:
Two bytes have 2 times 8 bits is 16 bits.
Max value that can be expressed is 2¹⁶-1 = 65535
Answer:
#include<iostream>//library inclusion
using namespace std;
int main()
{
int userInput;
do//start of do while loop
{
cout << "Enter a number less than a 100" << endl;
cin >> userInput;
if (userInput < 100) //condition
{
cout << "YOu entered less than a hundred: " << userInput << endl;
}
else
{
cout << "your number is greater than 100" << endl;
}
} while (userInput > 100);//condition for do while
return 0;//termination of int main
}
Explanation:
The program has been commented for you. The do-while loop enters the first loop regardless of the condition. Then after the first iteration, it checks for the condition. If the condition is being met, it will iterate through, again. Otherwise it will break out of the loop and land on the "return 0;" line. Which also happens to be the termination of the program in this case. The if-else condition is used for the user to see when prompted.
Answer:
The correct loop is as follows:
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
tuition = startingTuition + rate * startingTuition
startingTuition = tuition
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Explanation:
Required
The correction to the attached program
Some variables are not needed; so, I've removed the redundant variables.
The main error in the program is in the loop;
After the tuition for each year has been calculated, the startTuition of the next year must be set to the current tuition
<em>See attachment for complete program</em>
Answer:
Task manager
Explanation:
Allows you to force quit applications.