Learning Outcome
At the end of this lesson, you will be able to:
- create an application that uses 2D arrays
Silent Watching
Review
- review functions and passing in arrays
Lesson
- go over "Multi-dimensional Arrays", Chapter 5
- Computer Based Problem Solving
Activity
Daily Assignment
- we will work on this for 2 days
- create a program that:
- Assume student marks for this class are saved in a 2D array. One dimension for the student, the other for the assignment.
- I don't really like marking, so write a program that populates a 4x6 array (4 students, 6 assignments) with random numbers from 0 to 100.
- Create a function that accepts the array and passes back the classes overall average.
- post the solution and then the final program on your website
top-down design- flow-chart
pseudo-codeat least three (3) test cases calculated out using some other method then your program (ensure you show how you calculated each one of them out!)- actual code
- three screen shots of program working (with actual values from your test cases above)
- zipped up solution file
- once your first 2 steps are done, code the next 3
- post all items to your website
Extra
- for the above program, make higher marks happen more often