Visual C++ Programming: Concepts and Projects Chapter 7B Arrays (Tutorial)
Tutorial: Classroom Seating Problem Analysis Create a classroom seating chart Color code the seats to match student performance levels Red = below the mean Yellow = mean up to 90% Green = 90% or better Visual C++ Programming
Design Interface sketch Variables and constants Control Table NUMROWS, NUMCOLS Data Table Drawing objects Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Design (continued) Algorithm for seating chart Draw a rectangle in every column in each row Algorithm for coloring seats For each seat Determine the student score Determine color of the seat based on score Color the seat rectangle Trace sample data to test the algorithms Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Development Create the interface Code the constants and instance variables Code Form1_Load() Code btnShow_Click() Code btnGroups_Click() Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Visual C++ Programming
Testing Verify that interface matches Figure 7-17 Verify that the mean is correct Make sure that the seats are colored correctly to match the three levels of student performance Visual C++ Programming
On Your Own Display the highest score Display a count of scores above the mean Visual C++ Programming