Visual C++ Programming: Concepts and Projects

Slides:



Advertisements
Similar presentations
Chapter 12.1 and 12.2.
Advertisements

An Introduction to Programming with C++ Fifth Edition
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 8 Arrays.
Lesson 6.10: Composing a Rectangle Array. Application Problem Sandy’s toy telephone has buttons arranged in 3 columns and 4 rows. Draw a picture of Sandy’s.
Visual C++ Programming: Concepts and Projects
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
In this tutorial you will learn how to go from THIS.
Divisors and Factors Section 2.3. Objectives Write a counting number as the product of two factors in all possible ways List all of the factors (divisors)
Chapter 5: Linear Functions
Chapter 12: How Long Can This Go On?
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 2 Section 1 – Slide 1 of 27 Chapter 2 Section 1 Organizing Qualitative Data.
ORGANIZING QUALITATIVE DATA 2.1. FREQUENCY DISTRIBUTION Qualitative data values can be organized by a frequency distribution A frequency distribution.
Programming with Visual C++: Concepts and Projects Chapter 3B: Integral Data (Tutorial)
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
Visual C++ Programming: Concepts and Projects Chapter 11B: Pointers (Tutorial)
COUNTING Directions: Write your word on the I pad and on the paper. Count the amount of letters in your word and then find the color that matches that.
Chapter 2 Section 2.5 Infinite Sets. Sets and One-to-One Correspondences An important tool the mathematicians use to compare the size of sets is called.
Visual C++ Programming: Concepts and Projects Chapter 12B: Linked List (Tutorial)
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 6B Methods (Tutorial)
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 4 Working with Variables, Constants, Data Types, and Expressions.
Bio Jumpstart: Jackie read that Aloe vera promoted healing of burned tissue. She decided to investigate the effect of varying amounts of aloe.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 3B Integral Data (Tutorial)
Programming with Visual C++: Concepts and Projects Chapter 4B: Selection (Tutorial)
Red Table – Station 1 Read instructions carefully and then complete the activity.
An Introduction to Programming with C++ Sixth Edition Chapter 12 Two-Dimensional Arrays.
Square Roots Notes and Skills Practice. Square Chart O On your graph paper, create a horizontal table with 2 rows and 26 columns O Label the rows “side”
Visual C++ Programming: Concepts and Projects Chapter 10B: Recursion (Tutorial)
5.2 Volumes of Revolution: Disk and Washer Methods 1 We learned how to find the area under a curve. Now, given a curve, we form a 3-dimensional object:
Configuration for routing example
How to Multiply Fractions
Displaying Categorical Data
Organizing Qualitative Data
Arrays Chapter 7.
ANATOMY OF A LINE CHART Line Charts are used to present data trends over time. They may present a single variable or be used to compare multiple variables.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to Matrices
Quarter 4 Concept 2 Equal Parts Fractions.
Analyzing and Interpreting Quantitative Data
2.2 Bar Charts, Pie Charts, and Stem and Leaf Diagram
Using Excel to Graph Data
Notes and Skills Practice
Unit 1 : Simplifying & Writing Expressions
Chapter 3 Graphical and Tabular Displays of Data.
Accumulation AP Calculus AB Days 11-12
Name: _______________________________
Introduction to Matrices
Multiplying Matrices.
Frequency Distributions and Their Graphs
Fractions 1/2 1/8 1/3 6/8 3/4.
Align The Stars Continue.
Two-Way Frequency Tables
How Scientists Record and Plot Motion Data
First we need to draw a place table grid. Then write our number in it
2.2 Introduction to Matrices
Starting Out with Programming Logic & Design
Arrays Chapter 7.
Using Excel to Graph Data
Organizing Qualitative Data
Arrays Part 2.
Chapter 26 Comparing Counts.
Inference for Two Way Tables
GO! with Microsoft® Excel 2010
Division Using Arrays.
Please pick up the following BEFORE class starts:
Matrices.
Multidimensional Arrays Section 6.4
Agenda for Unit 8: Defining Arrays in Game Programs
Introduction to Computer Programming IT-104
Chapter 11 Excel Extension: Now You Try!
Presentation transcript:

Visual C++ Programming: Concepts and Projects Chapter 7B: Arrays (Tutorial)

Tutorial: Classroom Seating Problem Analysis Create a classroom seating chart Squares will represent seats Color code the seats to match student performance levels Red = below the mean Yellow = mean up to 90% Green = 90% or better Programming with Visual C++

Programming with Visual C++ Design Interface sketch Multiple rows of seats Seats are color-coded by student score Mean score is displayed in a TextBox Two buttons To display empty seats To display colored seats used to locate groupings Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Constants The number of rows and columns of seats Programming with Visual C++

Programming with Visual C++ Design (continued) Data table Instance variables Programming with Visual C++

Programming with Visual C++ Design (continued) Drawing objects Programming with Visual C++

Programming with Visual C++ Design (continued) Algorithm for btnShow_Click() Construct a seating chart Draw a rectangle in every column in each row Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Algorithm for btnGroup_Click() Programming with Visual C++

Programming with Visual C++ Design (continued) Trace sample data to test the algorithms The program maps a one-dimensional array of data into a two-dimensional array of seats Proceed one row at a time Process each column in that row Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Design (continued) Programming with Visual C++

Programming with Visual C++ Development Create the interface Code the constants and instance variables Code Form1_Load() Code btnShow_Click() Code btnGroups_Click() Programming with Visual C++

Development (continued) Programming with Visual C++

Development (continued) Code the constants and instance variables Programming with Visual C++

Development (continued) Code Form1_Load() Programming with Visual C++

Development (continued) Drawing the seats on the interface The horizontal distance between each seat is 75 pixels The vertical distance between each seat is 40 pixels Programming with Visual C++

Development (continued) Programming with Visual C++

Development (continued) Programming with Visual C++

Development (continued) Code btnShow_Click() Programming with Visual C++

Development (continued) Code btnGroups_Click() Before drawing the seats, the mean must be calculated and displayed Programming with Visual C++

Development (continued) CalcMean() Accumulates the sum of the values in the array Divides by the number of array elements Programming with Visual C++

Development (continued) Drawing the color-coded seats Programming with Visual C++

Programming with Visual C++ 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 Programming with Visual C++

Programming with Visual C++ On Your Own Display the highest score Display a count of scores above the mean Programming with Visual C++