Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use the answers: _______ mike take one item per trip. A Between 1000 and 2000 tr

ID: 3628501 • Letter: U

Question

Use the answers:                     _______ mike take one item per trip.

A Between 1000 and 2000 trips             

B Between 100,000 and 200,000 trips     _______ mike take 7 things per trip.

C 1,000,000 trips                                    

D Between 100 and 200 trips                  _______ mike takes 1 item on the first trip, 2 on the

E Between 10 and 20 trips                                                  second trip, 3 on the third trip, etc.

F. Between 10,000 and 20,000 trips             _______ mike takes 1 item on the first trip, 2 on the

                                                                              second trip, 4 on the third trip, 8 on the fourth

                                                                              trip, etc.

Explanation / Answer

#include <iostream>

using namespace std;

void main()

{

int trips;

cout<<"Enter number of trips:";

cin>>trips;

if(trips>10&&trips<20)

cout<<"Mike takes no items";

else if(trips>100&&trips<200)

cout<<"Mike takes 1 item on first trip, 2 on second trip 3 on third trip";

else if(trips>1000&&trips<2000)

cout<<"mike take one item per trip";

else if(trips>10000&&trips<20000)

cout<<"Mike takes 1 item on first trip, 2 on second trip 4 on third trip 8 on forth trip";

else if(trips>100000)

cout<<"mike takes 7 items per trip";

system("pause");