Slide 1 Chapter 6: More on the Selection Structure Introduction to Programming with C++ Fourth Edition Slide 2 Introduction to Programming with C++, Fourth Edition 2 Objectives…