From 003a8de585deb1deeb678c7735028b2590fd3558 Mon Sep 17 00:00:00 2001 From: saichandana19925 <59165702+saichandana19925@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:33:46 +0530 Subject: [PATCH 1/7] Coordinates are changed --- src/lab/exp6/simulation/IfElse/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 + From f717c224eda96cd18fd5ea13e2b11b3f4db8abc7 Mon Sep 17 00:00:00 2001 From: saichandana19925 <59165702+saichandana19925@users.noreply.github.com> Date: Mon, 29 Jun 2020 13:05:52 +0530 Subject: [PATCH 2/7] problem solved --- src/lab/exp10/simulation/index.html | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 src/lab/exp10/simulation/index.html diff --git a/src/lab/exp10/simulation/index.html b/src/lab/exp10/simulation/index.html new file mode 100644 index 00000000..d4aadb26 --- /dev/null +++ b/src/lab/exp10/simulation/index.html @@ -0,0 +1,81 @@ + + + + + + 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 :
+
+
+
+ + From ddbfe6059b4846af8636c731d6c4d2a253191523 Mon Sep 17 00:00:00 2001 From: saichandana19925 <59165702+saichandana19925@users.noreply.github.com> Date: Mon, 29 Jun 2020 13:14:50 +0530 Subject: [PATCH 3/7] option are added --- src/lab/exp10/simulation/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lab/exp10/simulation/index.html b/src/lab/exp10/simulation/index.html index d4aadb26..9454d661 100644 --- a/src/lab/exp10/simulation/index.html +++ b/src/lab/exp10/simulation/index.html @@ -39,6 +39,7 @@
-
- +
+
+
@@ -71,4 +72,4 @@ - \ No newline at end of file + From 6a77cfde1ce21b5716716246c57add818982ee1e Mon Sep 17 00:00:00 2001 From: saichandana19925 <59165702+saichandana19925@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:28:35 +0530 Subject: [PATCH 5/7] updated --- src/lab/exp1/simulation/index.html | 2 +- src/lab/exp1/simulation/numericalApproximation.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 { From e584fa29725e6fa16e913c34fc7ae60c82fed486 Mon Sep 17 00:00:00 2001 From: saichandana19925 <59165702+saichandana19925@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:45:57 +0530 Subject: [PATCH 6/7] updated --- src/lab/exp3/simulation/advControlFlow.js | 9 ++++++++- src/lab/exp3/simulation/index.html | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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 + From 537ea159ad2ab4e9c92ccf3ab7b1f914f2fad3b5 Mon Sep 17 00:00:00 2001 From: saichandana19925 <59165702+saichandana19925@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:58:32 +0530 Subject: [PATCH 7/7] updated --- src/lab/exp9/simulation/JS/recursion.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }