Computers and Technology, 19.10.2020 08:01 JoshuaXYP9978
How do i set up a remainder for my program? (C++)
Details: i’m trying to set up a program meant for a child and i want a division problem to show remainders. I’ve tried but have no idea how.
Program:
#include
#include
#include
Int main() {
const int MIN_NUM = 1,
MAX_NUM = 99;
int randNum1,
randNum2;
Unsigned seed = time(0);
srand(seed);
randNum1 = (rand()%(MAX_NUM - MIN_NUM + 1) + MIN_NUM);
randNum2 = (rand()%(MAX_NUM - MIN_NUM + 1) + MIN_NUM);
case 'D':
case 'd': {
cout << "\nCool! \nLemme set you up with some DIVISION problems! " << endl;
cout << "\n";
cout << "\n";
cout << "\n " << randNum2 << "\n÷ " << randNum4 << "\n \n";
randNumAnswer = randNum2 / randNum4;
cin >> userAnswer;
if (userAnswer != randNumAnswer) {cout << "\nYou didn't get the right answer but try again. Don't lose hope!\n"; }
else if (userAnswer == randNumAnswer) { cout << "\nAmazing!! You did great!\n";}
break;}
}
return 0;
}
Answers: 1
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
How do i set up a remainder for my program? (C++)
Details: i’m trying to set up a program meant for...
Mathematics, 24.02.2020 20:47
Mathematics, 24.02.2020 20:47
Biology, 24.02.2020 20:48