Page 1 of 2

C++ in Practice: the lab printer

This voluntary feedback survey is for adults who are new to C++. It takes about 8–10 minutes. Please don’t include your name, email or other identifying details. Nothing is for sale here.
The school printer: the first 10 minutes are free. The next 20 minutes cost 12 cents each. Each minute after minute 30 costs 8 cents. Read one integer from 0 to 1,000 and print the total cost in cents. Try it in C++17 or work it out on paper.

What would your program print for 0, 29 and 32 minutes? Enter three amounts in cents, or write “not sure”.