Two kids in my row need to switch seats. Let me type the twoseat numbers and swap them. At the end, show me the old rowand the new row together, so I can write both down and puteveryone back tomorrow if it goes badly.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
First seat to swap? (1-5) 2Second seat to swap? (1-5) 4
Before: Avery, Blake, Casey, Dakota, EmeryAfter: Avery, Dakota, Casey, Blake, EmeryVerified in a real run — seats 2 and 4 swapped, and the old row still shows Blake in seat 2.
Your requirements list and your program file, named cc-seat-swap.