Question

A4-2. Create an index of a book by using Switch Structure with the condition below:

Chapter 1: Introduction

Chapter 2: Modeling

Chapter 3: Programming

If the chapter is not between 1-3, it will show an error message "The Index

number is not vailed".

Execute the program and display the results, whenever the chapter number is 1, 2, 3,

and 4

Question image 1