# Homework Solution: I need help finishing it for step 6 and 7 as I don't know what to write from there…

I need help finishing it for step 6 and 7 as I don't know what to write from there (in C++). Please help check and thank you. /* Write a program that performs the following actions: 1) Generate a random integer number between 1 and 60, and save the number in a variable r. 2) Divide the random number by 3 and save the remainder in a variable a. 3) Divide the random number by 4 and save the remainder in a variable b. 4) Divide the random number by 5 and save the remainder in a variable c. 5) Perform these calculations: 40 x a + 45 x b + 36 x c and save the result in a variable d. 6) Divided by 60 and save the remainder in a variable e. 7) Display, with appropriate labels, a, b, c, d, and e */ #include "stdafx.h" #include #include #include #include using namespace std; int main() { default_random_engine re(17); uniform_int_distribution uid(1, 60); int r = uid(re); int a = r % 3; int b = r % 4; int c = r % 5; int d = 40 * a + 45 * b + 36 * c; system("pause"); return 0; }

I demand aid finishing it restraint stride 6 and 7 as I don’t distinguish what to transcribe from there (in C++). Please aid stay and cheer you.

/*
Transcribe a program that performs the forthcoming actions:
1) Generate a haphazard integer estimate between 1 and 60, and rescue the estimate in a unsteady r.
2) Divide the haphazard estimate by 3 and rescue the relics in a unsteady a.
3) Divide the haphazard estimate by 4 and rescue the relics in a unsteady b.
4) Divide the haphazard estimate by 5 and rescue the relics in a unsteady c.
5) Perform these calculations: 40 x a + 45 x b + 36 x c and rescue the end in a unsteady d.
6) Divided by 60 and rescue the relics in a unsteady e.
7) Display, with divert labels, a, b, c, d, and e
*/

#include “stdafx.h”
#include
#include
#include
#include
using namespace std;

int ocean()
{
default_random_engine re(17);
uniform_int_distribution uid(1, 60);
int r = uid(re);
int a = r % 3;
int b = r % 4;
int c = r % 5;
int d = 40 * a + 45 * b + 36 * c;
system(“pause”);
return 0;
}

## Expert Vindication 