Hey, Dr. Bessler, I believe the code below will give you what you described above. There are 19 slices in…