diff --git a/src/lab/exp1/simulation/index.html b/src/lab/exp1/simulation/index.html index d6ceab13..5c852e14 100644 --- a/src/lab/exp1/simulation/index.html +++ b/src/lab/exp1/simulation/index.html @@ -24,7 +24,7 @@


1. Given a well-behaved smooth function, integrate it over the given limits of integration ?


2. Approximating solution to integral a smooth function.


-

3. Integration Limits are from 0 to 30, b > a and b-a >= 1.


+

3. Integration Limits are from 1 to 10.


diff --git a/src/lab/exp1/simulation/numericalApproximation.js b/src/lab/exp1/simulation/numericalApproximation.js index 5ca76384..966f4215 100644 --- a/src/lab/exp1/simulation/numericalApproximation.js +++ b/src/lab/exp1/simulation/numericalApproximation.js @@ -290,8 +290,8 @@ window.view = { alert('Enter numeric value of a and b'); return false; } - else if (valueA2 >= valueB2 || valueB2 > 30) { - alert('Integration Limits are from 0 to 30, b > a and b-a >= 1'); + else if (valueA2 > 11 || valueB2 >11) { + alert('Integration Limits are from 0 to 10, 1>=a<=10 and 1>=b<=10'); return false; } else { diff --git a/src/lab/exp10/simulation/index.html b/src/lab/exp10/simulation/index.html new file mode 100644 index 00000000..9454d661 --- /dev/null +++ b/src/lab/exp10/simulation/index.html @@ -0,0 +1,82 @@ + + + + + + Computer-Programming + + +
Expression Evaluation +
+
Select Operator : + +
+
+
+
+
+
Initialize
+
+
Initialize the values
+
+
a: 
+ +
b: 
+ +
+
+
c: 
+ +
d: 
+ +
+ + + + + + + + + +
+
+
+
Evaluation Flow of Expression
+
+
+ +
+
Code Output
+
+
Step by step reasoning :
+
+
Current Step :
+
+
+
+ + diff --git a/src/lab/exp3/simulation/advControlFlow.js b/src/lab/exp3/simulation/advControlFlow.js index 9f83de25..91aef1c7 100644 --- a/src/lab/exp3/simulation/advControlFlow.js +++ b/src/lab/exp3/simulation/advControlFlow.js @@ -34,8 +34,15 @@ window.view = { }, getInput: function() { var inputValue = document.getElementById('simpleLoopInput').value + if(inputValue>=0 && inputValue<=20) + { model.inp = Number(inputValue) this.clearExecutionSection() + } + else + { + alert('enter the range in between 0 and 20'); + } }, getNestedInput: function() { var inputValue = document.getElementById('nestedLoopInput').value @@ -377,4 +384,4 @@ window.view = { this.activateEvents() } } -window.onload = function() { view.init() } \ No newline at end of file +window.onload = function() { view.init() } diff --git a/src/lab/exp3/simulation/index.html b/src/lab/exp3/simulation/index.html index 6efd0f61..9bee4e7a 100644 --- a/src/lab/exp3/simulation/index.html +++ b/src/lab/exp3/simulation/index.html @@ -22,7 +22,7 @@ -
Enter number for calculating P!
+
Enter number for calculating P!(range in between 0 to 20)
@@ -142,4 +142,4 @@
- \ No newline at end of file + diff --git a/src/lab/exp4/simulation/1-D/index.html b/src/lab/exp4/simulation/1-D/index.html index a6a25b17..d30789b0 100644 --- a/src/lab/exp4/simulation/1-D/index.html +++ b/src/lab/exp4/simulation/1-D/index.html @@ -21,8 +21,9 @@
-
- +
+
+
@@ -71,4 +72,4 @@ - \ No newline at end of file + diff --git a/src/lab/exp6/simulation/IfElse/index.html b/src/lab/exp6/simulation/IfElse/index.html index 46080f90..474ccbaa 100644 --- a/src/lab/exp6/simulation/IfElse/index.html +++ b/src/lab/exp6/simulation/IfElse/index.html @@ -14,10 +14,10 @@
Initialize
-
x1 = 075;   y1 = 075;
-
x2 = 275;   y2 = 075;
-
x3 = 275;   y3 = 325;
-
x4 = 075;   y4 = 325;
+
x1 = 050;   y1 = 050;
+
x2 = 250;   y2 = 050;
+
x3 = 250;   y3 = 300;
+
x4 = 050;   y4 = 300;
@@ -125,4 +125,4 @@
- \ No newline at end of file + diff --git a/src/lab/exp9/simulation/JS/recursion.js b/src/lab/exp9/simulation/JS/recursion.js index 1417a55b..82001922 100644 --- a/src/lab/exp9/simulation/JS/recursion.js +++ b/src/lab/exp9/simulation/JS/recursion.js @@ -23,8 +23,8 @@ window.view = { alert('Enter number of disks first !') else if ( isNaN(input) === true ) alert('Number of disks must be an integer value !') - else if ( input > 5 || input % 1 !== 0 ) - alert('Only integral value (Greater than equal to 1 and less than equal to 5) is accepted !') + else if ( input < 0 || input >11) + alert('Only integral value (Greater than equal to 0 and less than equal to 10) is accepted !') else { this.disableElement('btnOk') this.enableElement('btnStart') @@ -290,4 +290,4 @@ window.view = { this.activateEvents() } } -window.onload = function() { view.init() } \ No newline at end of file +window.onload = function() { view.init() }