From 83c1bfceb1b681b4bb7253b47491be2d8b2014a1 Mon Sep 17 00:00:00 2001 From: debashisdeb Date: Fri, 20 Jun 2014 15:42:42 +0530 Subject: removing problem statements --- _Programming_With_C/chapter6.ipynb | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to '_Programming_With_C/chapter6.ipynb') diff --git a/_Programming_With_C/chapter6.ipynb b/_Programming_With_C/chapter6.ipynb index 9e6277c3..5da628a1 100644 --- a/_Programming_With_C/chapter6.ipynb +++ b/_Programming_With_C/chapter6.ipynb @@ -66,7 +66,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# understanding basic if statement\n", "\n", "\n", "def main(first,second):\n", @@ -110,7 +109,6 @@ "collapsed": false, "input": [ "\n", - "# to understand the use of if else\n", "\n", "def main(time):\n", "\n", @@ -157,7 +155,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# consecutive integer quantities using WHILE loop\n", "\n", "\n", "digit=0\n", @@ -199,7 +196,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# lowercase to uppercase text conversion using WHILE loop\n", "\n", "\n", "\n", @@ -239,7 +235,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# averaging a list of numbers using while loop equivalent\n", "\n", "Sum,count=0,0\n", "\n", @@ -299,7 +294,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# consecutive integer quantities using an equivalent to DO-WHILE loop\n", "\n", "\n", "digit=0\n", @@ -343,7 +337,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# lowercase to uppercase text conversion using equivalent to DO-WHILE loop\n", "\n", "\n", "letter=\"Fourscore and seven years ago aou fathers brought forth...\"\n", @@ -386,7 +379,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# averaging a list of numbers using do whileloop equivalent\n", "\n", "Sum,count=0,0\n", "\n", @@ -435,7 +427,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# consecutive integer quantities using FOR loop\n", "\n", "for digit in range(0,10):\n", " print digit\n", @@ -475,7 +466,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# lowercase to uppercase text conversion using FOR loop\n", "\n", "\n", "letter=\"Fourscore and seven years ago aou fathers brought forth...\"\n", @@ -515,7 +505,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Averaging a List of Numbers using an FOR loop\n", "\n", "\n", "n=6\n", @@ -552,7 +541,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Repeated averaging of a list of numbers\n", "\n", "\n", "\n", @@ -611,7 +599,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# coverting several lines of text to upper case\n", "\n", "text=['Now is the time for all good men to come to aid..','Fourscore and seven years ago our fathers brought forth...','*']\n", "\n", @@ -669,7 +656,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Encoding a string of characters\n", "\n", "line=\"The White House. 1600 Pennsylvania Avenue. Washington. DC\"\n", "line=list(line)\n", @@ -718,7 +704,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Repeated Compund Interest Calculations with Error Tapping\n", "\n", "\n", "def main(p,r,n):\n", @@ -764,7 +749,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Solution of an algebraic equation : x^5+3x^2-10=0\n", "\n", "import math\n", "\n", @@ -850,7 +834,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# to show equivalent of switch case in python\n", "\n", "def main(ch):\n", "\n", @@ -896,7 +879,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# a small variation to the previous example\n", "\n", "def main(ch):\n", " ch=ch.upper()\n", @@ -948,7 +930,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# another example to show th equivalent of switch case in python\n", "\n", "\n", "import math\n", @@ -1007,7 +988,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculating Depreciation\n", "\n", "choice=0\n", "\n", @@ -1145,7 +1125,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Averaging list of Nonnegative Numbers\n", "\n", "navg=0\n", "Sum=0.0\n", @@ -1187,7 +1166,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Searching for Palindromes\n", "\n", "\n", "\n", @@ -1250,7 +1228,6 @@ "cell_type": "code", "collapsed": false, "input": [ - "# coverting several lines of text to upper case\n", "\n", "text=['Now is the time for all good men to come to aid..','Fourscore and seven years ago our fathers brought forth.$$..','*']\n", "\n", -- cgit