Write a program for the grading-on-the-curve problem in


Write a program for the grading-on-the-curve problem in Problem 2, but use a dynamically allocated array.

Problem 2,

Peter the postman became bored one night and, to break the monotony of the night shift, he carried out the following experiment with a row of mailboxes in the post office. These mailboxes were numbered 1 through 150, and beginning with mailbox 2, he opened the doors of all the even-numbered mailboxes, leaving the others closed. Next, beginning with mailbox 3, he went to every third mail box, opening its door if it were closed, and closing it if it were open. Then he repeated this procedure with every fourth mailbox, then every fifth mailbox, and so on. When he finished, he was surprised at the distribution of closed mailboxes. Write a program to determine which mailboxes these were.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a program for the grading-on-the-curve problem in
Reference No:- TGS02583977

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)