When Jessica has a bad day, she might kill and injure customers and coworkers. They deserve it, though. The only thing that will help is her friend Victoria. If Victoria is nearby, Jessica will just injure the people she would have killed.
Write a program to compute the cost of a Jessica rampage. Here's how it starts:
(Yes, I accidentally put a blank line after the coworker heading. You can remove it.)
The user fills in the five inputs. The death and injury counts should be numeric, and zero or more. The cell at 12, 2 should be Y or N, with case and extra spaces not mattering. If there are errors, show them to the right of the inputs. Like this:
Important! Show all the error messages that apply, not just the first one your code detects. Hint: use the flag pattern. Another hint: clear old error messages and output each time the program runs.
The cost of each death or injury are in cells (20, 2) to (23, 2), as you can see.
Here is some output:
Here is some more:
You don't have to use subs for this one, though you can if you want.
Upload your solution.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)