This document contains 5 problems and solutions related to writing C++ programs. Problem 1 asks to write a program that repeatedly collects positive integers from the user until a negative number is entered, then outputs the product of the positive numbers. Problem 2 asks to write a program that counts the even and odd numbers entered by the user until a negative number is entered. Problem 3 asks to output all divisors of a number entered by the user in ascending order. Problem 4 asks to output the two largest numbers from a list of numbers entered by the user until a negative number is entered. Problem 5 asks to convert a number of seconds after midnight to hours:minutes:seconds format. Solutions in C++ are provided for each problem.