English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm new to C ++ and Need help on this problem:

Design an algorithm ot find the weighted average of four test scores.
the four test scores and their respective weights are given in following format:

Testscore1 Weight1
...

For example, a sample data is as follows:

75 0.20
95 0.35
85 0.15
65 0.30

Forgot to mention it has to be done in Pseudocode.

2007-01-10 04:15:19 · 3 answers · asked by octax2 1 in Computers & Internet Programming & Design

3 answers

Check out http://www.pscode.com for great examples.

2007-01-10 04:18:00 · answer #1 · answered by Richard H 7 · 0 0

Yeah, you need to do your own work. I think you want to write a loop, right? And update a variable on each pass through the body of the loop? Break the problem down into pieces, and you'll get there eventually.

2007-01-10 06:24:48 · answer #2 · answered by arbeit 4 · 0 0

Why don't you do your own homework?

2007-01-10 04:42:40 · answer #3 · answered by Arvenis 2 · 0 0

fedest.com, questions and answers