Your programs must have inline, online, and external documentation. They must be user friendly, and check for errors in user input. They should also have appropriate messages. At this point in the course, use all the features of the language that you have learned, and read the API to apply new ideas to your source.
Once you've looked at the questions, try to divide your solutions into functions and variables. When you need to store something, that's your clue to make a variable. When you need to DO ONE THING, that's your clue to write a function.
If you have to hold similar types of data, that's your clue to use a list to manage the data.
1. Who are you? Write an application which asks for 5 first names, and stores them. The user should be able to display all the names, edit a specific name, display a specific name, and delete a specific name.
2. What's my average? Write an application which asks for 4 class averages of a student. Calculate the that student's average.
3. Traffic survey. A detector on a road sends a signal every second to a computer. The computer stores the data like so: 1=no vehicle, 2=vehicle, 0=end of survey. Given a series of these data elements, calculate the length of the survey, the number of vehicles, longest interval with no vehicles, average # of vehicles per minute. Your program will have to generate the data set. Please make sure that the data set is at least 3 minutes long.
4. The Amazing Dungeon of Doom. You are a brave warrior set out to raid a dungeon filled with treasure, traps and teleportation. Your dungeon will be randomly created by generating a series of random numbers between 1 and 9. The default dungeon length will be 6 rooms. Given a starting location of 1, use the room value at that location as the position of the next location and continue until you get out of the dungeon, in which case you have got to the treasure and won, or you repeat a location. For example (5, 3, 8, 2, 4, 7) and a starting location of 1 leads to the sequence: 1, 5, 4, 2, 3, 8, treasure! Show each step of the adventure.
Formative Evaluation
If you can't see the document, please read: You Do Not Need Permission To View Any Documents.