ch. 5 program problems 1 n 2

I do not know what country you live in, what grade you are in, what book you are using, or what on earth ch 5 in whatever book is about.

Please type the problem.