Announcements

Looping around data: Array - the devise that let us handle with ease a great number of variables. Choose the shape to fit your engineering problem ( One dimensional, Two dimensional, Three …, Four …).

In this unit we deal with arrays.  When you deal with large number of data entries and you need to keep them in order and easily referable  you prefer to use arrays. Some times one dimensional ( list of test scores), many times two dimensional ( spreadsheets of various scores for various students, or the availability of seats in a theater, or the characteristics of a surface), and some times multi  dimensional ( the data needed to predict the weather over a region over a few days) .  In this unit we will also learn some elementary statistics, such as: how to calculate the mean, max, min, standard deviation of a set of data and how to find a straight line curve fit of some given relational data.

 Reading Assignments
Book 1; Pages 275 - 296 & 331 - 341 & 413 - 420 

 Subtopics — Notes/ Examples:


Arrays Elementary Statistics

 

 Tasks:


  • Write a program in C++, which reads a set of test scores through the keyboard, locates and prints the maximum and minimum score.  Your program should also calculate and print a set of adjusted scores that are obtained by multiplying each original score by the same bonus factor so that the average of adjusted scores is 85% ( when you enter grades pretend to be the lean mean grading machine ).

 


Jacob Y. Kazakia © 2001 All rights reserved