summaryrefslogtreecommitdiff
path: root/parsing_data
diff options
context:
space:
mode:
authorPuneeth Chaganti2010-11-17 23:24:57 +0530
committerPuneeth Chaganti2010-11-17 23:24:57 +0530
commit347866ed0d29db61ee062563b1e1616cfb85588c (patch)
treed5fe9159a195939b5979e804bad3a7f9842a679f /parsing_data
parent75034126a8c663fc03d922f41d9bf5051cc7e88d (diff)
parent66b5c35494866a8c94a3d9dce33dbc40d86542cb (diff)
downloadst-scripts-347866ed0d29db61ee062563b1e1616cfb85588c.tar.gz
st-scripts-347866ed0d29db61ee062563b1e1616cfb85588c.tar.bz2
st-scripts-347866ed0d29db61ee062563b1e1616cfb85588c.zip
Merged heads.
Diffstat (limited to 'parsing_data')
-rw-r--r--parsing_data/script.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/parsing_data/script.rst b/parsing_data/script.rst
index 2a3573c..fd299c8 100644
--- a/parsing_data/script.rst
+++ b/parsing_data/script.rst
@@ -13,9 +13,10 @@
.. 1. Getting started with lists
.. Author : Nishanth Amuluru
- Internal Reviewer :
+ Internal Reviewer : Amit
External Reviewer :
- Checklist OK? : <put date stamp here, if OK> [2010-10-05]
+ Language Reviewer : Bhanukiran
+ Checklist OK? : <put date stamp here, not OK> [2010-10-05]
Script
------
@@ -37,7 +38,7 @@ In this tutorial, we shall learn
#[Puneeth]: I don't like the way the term "parsing data" has been used, all
through the script. See if that can be changed.
- Lets us have a look at the problem
+ Let us have a look at the problem
{{{ Show the slide containing problem statement. }}}
@@ -48,9 +49,9 @@ to a student.
As you can see, each record consists of fields seperated by a ";". The first
record is region code, then roll number, then name, marks of second language,
first language, maths, science and social, total marks, pass/fail indicatd by P
-or F and finally W if with held and empty otherwise.
+or F and finally W if withheld and empty otherwise.
-Our job is to calculate the mean of all the maths marks in the region "B".
+Our job is to calculate the arithmetic mean of all the maths marks in the region "B".
#[Nishanth]: Please note that I am not telling anything about AA since they do
not know about any if/else yet.
@@ -143,7 +144,7 @@ By now we know enough to seperate fields from the record and to strip out any
white space. The only road block we now have is conversion of string to float.
The splitting and stripping operations are done on a string and their result is
-also a string. hence the marks that we have are still strings and mathematical
+also a string. Hence the marks that we have are still strings and mathematical
operations are not possible on them. We must convert them into numbers
(integers or floats), before we can perform mathematical operations on them.