Friday, August 21, 2015

37. Computer Programming with flowcharting Technique (page 37)


8. ELEMENTARY FLOWCHART

8.1. EXAMPLE: Problem 12
From data which you there have been asked makes program to calculate
a. the many data
b. number of all data
c. the biggest data
d. smallest data
e. mean (AVERAGE)

8.2. Solution
This calculation process done applies mathematics formula by following way of writing of program that is:
Multiplication ( * ), division ( / ), quantifying ( + ), reduction ( - ), exponent rank ( ^ ), and gives parenthesis ( ) at part of calculation in order not to invite miscounting.

8.3. Logic:
Data read, when pot is clean data ( EOF), print output

8.4. Programming stages and steps:
8.4.1. Elementary flowchart picture
8.4.2. Writes name of variable

N = variable for the many data
N Initial Value = 0
TOTAL = variable for amounts of all data
MAX = variable for the biggest data
MIN = variable for smallest data
AVG = variable for mean (Average)

8.4.3. Determines variable data input
The biggest data lapped over out of three digits, hence addition berry of end data ( EOF = End Of File) that is number 999 ( the biggest number for three digits )

8.4.4. Writes mathematics formula required
8.4.5. Print output when data has finished
Fig.34

8.4.6. Program Listing
You would easily write the listing program.
Having making Program Listing writes data which will be processed.
Its way writes the data at the next line number for example.
180 DATA 38, 45, 20, 90, 27, 66, 49, 99
Then in SAVE by PROG057

8.4.7. Description:
And the biggest value is alterable smallest, in consequence there must be name of variable for the biggest data of temporary ( MAX) and smallest of temporary ( MIN)
At read of first data (value N=1) hence data value filled in as initial price for MAX and MIN.
At read of data hereinafter, data read ( A) compared to MAX and MIN. If A>MAX hence value A replaces value MAX stripper.
Then when A < MIN hence value A replaces value MIN stripper.
Thereby computing process will do update ( renewal) continuous value until pot is clean data
Value MAKS and last MIN printed as the biggest data ( MAX) and smallest ( MIN) from all data.
Numeral 999 that is end data is not processed. That function just for pointing to data boundary which must be processed. All data written behind data 99 will not be processed.

Information
Brainware: worker IT ( Information Technology)
Firstly is called as Data Entry Operator assigned enters / records data. With brief practice one can becomes Data Entry Operator
The next called as Computer Operators working it is operating / implements computer A computer operators must master Microsoft Office ( minimum) ( MsWord, Exel, PowerPoint and others)
(Nowadays Computer Operator and Data Entry Operator are the same profession)
A programmer must have programming logic and masters at least one programming languages for example Pascal, C, VB, Delphi, Java and so.
System Analyst is the next storey. A System Analyst receives making order of program from vendor that is company / individual of who is asking for designing program. Program which will be made must as according to order and according to programming logic path. In consequence between System Analyst and vendor agreement there must be that is then is poured in the form of System Design that is System Flowchart. From system design Programmer makes Program Design which is in the form of flowchart called as Program Flowchart. Hereinafter problems at this book made at this rate.

Followers

Blog Archive