solving C++

May 11th, 2015
Studypool Tutor
Price: \$10 USD

Tutor description

For each pair of numbers, when the division algorithm is used to divide a by d, what are the quotient q and remainder r? (a) a = 88, d = 11.(b) a = −29, d = 9 (c) a = 58237, d = 58168 (actual question is a = 58237, d = 58168 )

Word Count: 347
Showing Page: 1/2
Solving C++Q#1:For each pair of numbers, when the division algorithm is used to divide a by d, what are the quotient q and remainder r? (a) a = 88, d = 11.(b) a = 29, d = 9(c) a = 58237, d = 58168 (actual question is a = 58237, d = 58168 )Solution:(a) Because 88 = 118 + 0, we have q = 8, r = 0. (The fact that r = 0 says that 11|88.)(b) Because 29 = 9(4) + 7, we have q = 4 and r = 7. (Note that although we can write 29 =9(3) + (2), we cannot use 2 as r because r is not allowed to be negative.)(c) a = d(q)+r58237 = 58168(1) + 69Quotie

Review from student

Studypool Student
" Excellent work as always thanks so much "

1828 tutors are online

Other Documents

05/11/2015
05/11/2015
05/11/2015
05/11/2015
05/11/2015

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors