From d7346bda3e241eca2236a6553d90426ec64893e8 Mon Sep 17 00:00:00 2001 From: SyedNazar178 <67257741+SyedNazar178@users.noreply.github.com> Date: Mon, 29 Jun 2020 13:06:36 +0530 Subject: [PATCH 1/7] values 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..ca27fa4a 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 = 255;   y3 = 300;
+
x4 = 050;   y4 = 300;
@@ -125,4 +125,4 @@
- \ No newline at end of file + From b4037b332b839f7b527ac64d0f0df727e1958354 Mon Sep 17 00:00:00 2001 From: SyedNazar178 <67257741+SyedNazar178@users.noreply.github.com> Date: Mon, 29 Jun 2020 13:14:44 +0530 Subject: [PATCH 2/7] Completed --- 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..8814b106 --- /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 3098cecc0f288c8e3b8f519aa8d9ecd4c91f6d84 Mon Sep 17 00:00:00 2001 From: SyedNazar178 <67257741+SyedNazar178@users.noreply.github.com> Date: Mon, 29 Jun 2020 13:18:34 +0530 Subject: [PATCH 3/7] Completed.. --- 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 8814b106..2319c08c 100644 --- a/src/lab/exp10/simulation/index.html +++ b/src/lab/exp10/simulation/index.html @@ -44,6 +44,7 @@ +
+
+
- +
@@ -71,4 +72,4 @@ - \ No newline at end of file + From 7f53255e0d32a79b3b12d906b13809580c3fd319 Mon Sep 17 00:00:00 2001 From: SyedNazar178 <67257741+SyedNazar178@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:27:29 +0530 Subject: [PATCH 5/7] Finish --- src/lab/exp1/simulation/index.html | 2 +- src/lab/exp1/simulation/numericalApproximation.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lab/exp1/simulation/index.html b/src/lab/exp1/simulation/index.html index d6ceab13..dea2f9d0 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 0 to 10, b > a and b-a >= 1.


diff --git a/src/lab/exp1/simulation/numericalApproximation.js b/src/lab/exp1/simulation/numericalApproximation.js index 5ca76384..2e308cae 100644 --- a/src/lab/exp1/simulation/numericalApproximation.js +++ b/src/lab/exp1/simulation/numericalApproximation.js @@ -1,7 +1,3 @@ -//---------------------------------+ -// Author: Parvesh Kumar Gahanolia | -// Email: | -//---------------------------------+ window.model = { inputValueA @@ -290,8 +286,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, b > a and b-a >= 1'); return false; } else { From 5bce499d46b34047011588ae5131ef71185b9786 Mon Sep 17 00:00:00 2001 From: SyedNazar178 <67257741+SyedNazar178@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:44:35 +0530 Subject: [PATCH 6/7] some what problem in execution --- src/lab/exp3/simulation/advControlFlow.js | 15 +++++++++++---- src/lab/exp3/simulation/index.html | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/lab/exp3/simulation/advControlFlow.js b/src/lab/exp3/simulation/advControlFlow.js index 9f83de25..0f27063a 100644 --- a/src/lab/exp3/simulation/advControlFlow.js +++ b/src/lab/exp3/simulation/advControlFlow.js @@ -29,14 +29,20 @@ window.view = { element.addEventListener('change', method, false) }, replaceDiv: function(x, y) { - document.getElementById(x).style.display = 'none' + document.getElementById(x).style.display = 'none' document.getElementById(y).style.display = 'block' }, getInput: function() { var inputValue = document.getElementById('simpleLoopInput').value + if(inputValue>=0 && inputValue<=20 ) + { model.inp = Number(inputValue) this.clearExecutionSection() - }, + } + else{ + alert("Given value is out of range....Enter the value in between 0-20"); + } + }, getNestedInput: function() { var inputValue = document.getElementById('nestedLoopInput').value model.nestedInp = Number(inputValue) @@ -44,7 +50,8 @@ window.view = { }, activateEvents: function() { this.addClickEvent('btnNext', function() { view.nextBtn() }) - this.addClickEvent('optionFor', function() { view.clearExecutionSection() }) + t + his.addClickEvent('optionFor', function() { view.clearExecutionSection() }) this.addClickEvent('optionWhile', function() { view.clearExecutionSection() }) this.addClickEvent('optionDoWhile', function() { view.clearExecutionSection() }) this.addClickEvent('btnStart', function() { view.startBtn() }) @@ -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..8ddb75bd 100644 --- a/src/lab/exp3/simulation/index.html +++ b/src/lab/exp3/simulation/index.html @@ -1,7 +1,7 @@ - + Computer-Programming @@ -142,4 +142,4 @@
- \ No newline at end of file + From 401d6f070a8adaa80f3df63da3f925d2ddf44f31 Mon Sep 17 00:00:00 2001 From: SyedNazar178 <67257741+SyedNazar178@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:57:55 +0530 Subject: [PATCH 7/7] Done --- 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..d664f535 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>10 ) + alert('Only integral value (Greater than equal to 1 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() }