[b][red]This message was edited by fanatic at 2006-4-28 9:51:10[/red][/b][hr]
Use an iterative process to design and implement a solution to the following program. You must
submit the code, and annotated structure chart for each iteration of development (submit them in
separate directories, numbered by iteration).
Simple Statistics Program
This program must allow the user to enter a sequence of numbers (real numbers) from which
some basic statistics will be calculated. Once the sequence of numbers is entered the user should
be able to do the following:
Display the mean (average) of the values entered
Display the largest value entered
Display the smallest value entered
Quit
The following points are important for the users:
The users must be able to enter any number of values
Data entry should be as easy as possible
The following notes may help with the implementation of your solution:
The users will know ahead of time how many numbers they want to enter
The values entered by the user may be positive or negative
You can copy the code from question 1 to handle the user input

• : [b][red]This message was edited by fanatic at 2006-4-28 9:51:10[/red][/b][hr]
: Use an iterative process to design and implement a solution to the following program. You must
: submit the code, and annotated structure chart for each iteration of development (submit them in
: separate directories, numbered by iteration).
: Simple Statistics Program
: This program must allow the user to enter a sequence of numbers (real numbers) from which
: some basic statistics will be calculated. Once the sequence of numbers is entered the user should
: be able to do the following:
: Display the mean (average) of the values entered
: Display the largest value entered
: Display the smallest value entered
: Quit
: The following points are important for the users:
: The users must be able to enter any number of values
: Data entry should be as easy as possible
: The following notes may help with the implementation of your solution:
: The users will know ahead of time how many numbers they want to enter
: The values entered by the user may be positive or negative
: You can copy the code from question 1 to handle the user input
: Dont show library routines in your design (e.g. ReadLn, Write, WriteLn)
:
As you might have guessed: we don't write your assignments for you. Unless of course you are willing to write our assignments.
• : : [b][red]This message was edited by fanatic at 2006-4-28 9:51:10[/red][/b][hr]
: : Use an iterative process to design and implement a solution to the following program. You must
: : submit the code, and annotated structure chart for each iteration of development (submit them in
: : separate directories, numbered by iteration).
: : Simple Statistics Program
: : This program must allow the user to enter a sequence of numbers (real numbers) from which
: : some basic statistics will be calculated. Once the sequence of numbers is entered the user should
: : be able to do the following:
: : Display the mean (average) of the values entered
: : Display the largest value entered
: : Display the smallest value entered
: : Quit
: : The following points are important for the users:
: : The users must be able to enter any number of values
: : Data entry should be as easy as possible
: : The following notes may help with the implementation of your solution:
: : The users will know ahead of time how many numbers they want to enter
: : The values entered by the user may be positive or negative
: : You can copy the code from question 1 to handle the user input
: : Dont show library routines in your design (e.g. ReadLn, Write, WriteLn)
: :
: As you might have guessed: we don't write your assignments for you. Unless of course you are willing to write our assignments.
:
i will surely help with the stuff here .. and contribute to the forum
i m new in the programming langage .. and i want to learn more abt the language .. due to lack of time .. i m posting the question here ...

but at the same time i will surely contribute .. while my learning

i would be really grateful to u

• : : : [b][red]This message was edited by fanatic at 2006-4-28 9:51:10[/red][/b][hr]
: : : Use an iterative process to design and implement a solution to the following program. You must
: : : submit the code, and annotated structure chart for each iteration of development (submit them in
: : : separate directories, numbered by iteration).
: : : Simple Statistics Program
: : : This program must allow the user to enter a sequence of numbers (real numbers) from which
: : : some basic statistics will be calculated. Once the sequence of numbers is entered the user should
: : : be able to do the following:
: : : Display the mean (average) of the values entered
: : : Display the largest value entered
: : : Display the smallest value entered
: : : Quit
: : : The following points are important for the users:
: : : The users must be able to enter any number of values
: : : Data entry should be as easy as possible
: : : The following notes may help with the implementation of your solution:
: : : The users will know ahead of time how many numbers they want to enter
: : : The values entered by the user may be positive or negative
: : : You can copy the code from question 1 to handle the user input
: : : Dont show library routines in your design (e.g. ReadLn, Write, WriteLn)
: : :
: : As you might have guessed: we don't write your assignments for you. Unless of course you are willing to write our assignments.
: :
: i will surely help with the stuff here .. and contribute to the forum
: i m new in the programming langage .. and i want to learn more abt the language .. due to lack of time .. i m posting the question here ...
:
: but at the same time i will surely contribute .. while my learning
:
:
: i would be really grateful to u
:
:
:
The best way to learn to program is to program. By not doing your own programming you don't learn to program.
• i forgot how to write series(in the program value[x]) you can learn it from any pascal book.hope it'll be useful for you.program is given below:

uses crt;
var
thesmallest,thebiggest,x,number,sumofvalues,meanofvalues:integer;
begin
WriteLn('how many values will you enter?');
for x:=1 to number do
begin
SumOfValues:=SumOfValues+value[x];
thebiggest:=value[x];{assume first value as the biggest}
if value[x+1]>value[x] then thebiggest:=value[x+1];
thesmallest:=value[x];{assume first value as the samllest}
if value[x+1]<value[x] then thesmallest:=value[x+1];
end;
Meanofvalues:=sumofvalues/x;
Writeln('the mean of values=',meanofvalues);
writeln('the biggest value entered=',thebiggest);
writeln('the smallest value entered=',thesmallest);
exit;
end.
• : i forgot how to write series(in the program value[x]) you can learn it from any pascal book.hope it'll be useful for you.program is given below:
:
:
: uses crt;
: var
: thesmallest,thebiggest,x,number,sumofvalues,meanofvalues:integer;
: begin
: WriteLn('how many values will you enter?');
: for x:=1 to number do
: begin
: SumOfValues:=SumOfValues+value[x];
: thebiggest:=value[x];{assume first value as the biggest}
: if value[x+1]>value[x] then thebiggest:=value[x+1];
: thesmallest:=value[x];{assume first value as the samllest}
: if value[x+1]<value[x] then thesmallest:=value[x+1];
: end;
: Meanofvalues:=sumofvalues/x;
: Writeln('the mean of values=',meanofvalues);
: writeln('the biggest value entered=',thebiggest);
: writeln('the smallest value entered=',thesmallest);
: exit;