Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

{"owner":4,"content":{"title":"Gas Laws SciFair","slidesID":"1-iRBwocnALP0KbT_TgjLO6Orfaoo..

Decoded Output download

<?  {"owner":4,"content":{"title":"Gas Laws SciFair","slidesID":"1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs","nslides":14,"slides":[{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=p","id":"p"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_0","id":"g19de3ffb5ac_0_0"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_0","id":"g197afe225b9_0_0"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_5","id":"g197afe225b9_0_5"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_10","id":"g197afe225b9_0_10"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_15","id":"g197afe225b9_0_15"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_20","id":"g197afe225b9_0_20"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_5","id":"g19de3ffb5ac_0_5"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_10","id":"g19de3ffb5ac_0_10"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_15","id":"g19de3ffb5ac_0_15"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_20","id":"g19de3ffb5ac_0_20"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_25","id":"g19de3ffb5ac_0_25"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_30","id":"g19de3ffb5ac_0_30"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_35","id":"g19de3ffb5ac_0_35"}],"artifacts":[[{"code":"function calc(i) {
  var d = i.toLowerCase().trim();
  var grade = 0;
  var includedWords = [\"pressure\", \"temperature\", \"low\", \"high\"]

  const everything = includedWords.every(term => d.includes(term));

  if (everything) {
    var press = d.split(\"pressure\")[0];
    var temp = d.split(\"temperature\")[0];

    \/\/------------------------------------------------------------
    var highlow = [\"high\", \"low\"];
    const pressM = highlow.every(term => press.includes(term));
    const tempM = highlow.every(term => temp.includes(term));

    if (pressM) {

      if (temp.includes(\"high\") && !temp.includes(\"low\")) {
        grade = grade + 100;
      }
    } else {

      if (tempM) {

        if (!press.includes(\"high\") && press.includes(\"low\")) {
          grade = grade + 100;
        }
      }

    }

  }
  return grade;
}
","displayName":"1","id":"1","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
  var d = i.toLowerCase().trim();
  var grade = 0;
  var group1 = [\"colli\", \"hit\", \"crash\", \"bounc\", \"bump\"];
  var group2 = [\"wall\", \"container\"];
  var group3 = [\"molec\", \"partic\", \"atom\"]

  const result1 = group1.some(term => d.includes(term));
  const result2 = group2.some(term => d.includes(term));
  const result3 = group3.some(term => d.includes(term));

  if (result1 && result2&& result3) {
    grade = grade + 100;
  }
  return grade;
}
","displayName":"2","id":"2","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var studentAnswer =d.replace(\/[^a-zA-Z]+\/g, '');
const theAnswer = \"increaseincreasedecreaseincreasedecreasedecrease\";



if (studentAnswer == theAnswer) {
grade = grade + 100;

  
  }
    return grade;
  }","displayName":"3","id":"3","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k > 23.59  && k<23.631) {
grade = grade + 84;

  if (d.includes(\"l\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"4","id":"4","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k == 8.2) {
grade = grade + 84;

  if (d.includes(\"l\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"5","id":"5","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k > 132.999999 && k < 133.33333334) {
grade = grade + 84;

  if (d.includes(\"atm\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"6","id":"6","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k >489.9999999 && k< 490.1315789473685 ) {
grade = grade + 84;

  if (d.includes(\"ml\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"7","id":"7","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k >181.24999&&k<181.4000001) {
grade = grade + 84;

  if (d.includes(\"k\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"8","id":"8","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"},{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var increase = (d.match(\/increas\/g) || []).length;
var decrease = (d.match(\/decreas\/g) || []).length;


if (decrease>0){
var eighta= d.split(\"decreas\")[0];

if (eighta.includes(\"increas\") && decrease ==1){
grade = grade + 100;
}

}


    return grade;
  }","displayName":"8a","id":"8a","left":"0","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k > 3.889  & k < 3.900001) {
grade = grade + 84;

  if (d.includes(\"l\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"9","id":"9","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k>66.7999 && k<67.3001) {
grade = grade + 84;

  if (d.includes(\"atm\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"10","id":"10","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k > 0.47 && k < 0.4800001) {
grade = grade + 84;

  if (d.includes(\"l\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"11","id":"11","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;

var k =d.replace(\/[^0-9.]\/g, '');
if (k > 245.9999 && k < 246.200001) {
grade = grade + 84;

  if (d.includes(\"k\")) {
    grade = grade + 16;
  }}
    return grade;
  }","displayName":"12","id":"12","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
   var d = i.toLowerCase().trim();
  var grade = 0;
 const userInfo = getUserInformation();
  let first= userInfo.firstname;
  let last = userInfo.lastname;
  let user = userInfo.username;

let initialVolume = first.length* 10;
let initialTemp = last.length *4;
let finalTemp = user.length * -3;

let initialTempK= initialTemp+273;
let finalTempK= finalTemp +273;

\/\/   v1\/t1 = v2\/t2    -->   v2 = (v1 * t2)\/t1


let theAnswerFull = (initialVolume * finalTempK)\/ initialTempK;
let theAnswer =Math.round(100*theAnswerFull)\/100;


var k =d.replace(\/[^0-9.]\/g, '');

if (k == theAnswer) {
grade = grade + 89;


if (d.includes(\"l\")){
grade = grade + 11;
}}

  if (d.includes(\"?\")) {
    alert ( \"1 = \" + initialVolume + \" Liter \n2 = \" + initialTemp + \" C \n3 = \" + finalTemp + \" C \");
  }
    return grade;
  }
","displayName":"13","id":"13","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {
  var d = i.toLowerCase().trim();
  var grade = 0;
  const userInfo = getUserInformation();
  let first = userInfo.firstname;
  let last = userInfo.lastname;
  let user = userInfo.username;

  let initialMass = first.length * 5;
  let initialTemp = last.length * 3 + 100;
  let initialVolume = user.length * 8;

  let initialTempK = initialTemp + 273;
  let numMoles = initialMass \/ 18;


  \/\/   v1\/t1 = v2\/t2    -->   v2 = (v1 * t2)\/t1


  let theAnswerFull = (numMoles * 0.0821 * initialTempK) \/ initialVolume;
  let theAnswer = Math.round(100 * theAnswerFull) \/ 100;


  var k = d.replace(\/[^0-9.]\/g, '');

  if (k == theAnswer) {
    grade = grade + 89;


    if (d.includes(\"atm\")) {
      grade = grade + 11;
    }
  }

  if (d.includes(\"?\")) {
    alert(\"1 = \" + initialMass + \" grams \n2 = \" + initialTemp + \" C \n3 = \" + initialVolume + \" Liters \");
  }
  return grade;
}
","displayName":"14","id":"14","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}]]},"error":false} ?>

Did this file decode correctly?

Original Code

{"owner":4,"content":{"title":"Gas Laws SciFair","slidesID":"1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs","nslides":14,"slides":[{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=p","id":"p"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_0","id":"g19de3ffb5ac_0_0"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_0","id":"g197afe225b9_0_0"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_5","id":"g197afe225b9_0_5"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_10","id":"g197afe225b9_0_10"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_15","id":"g197afe225b9_0_15"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g197afe225b9_0_20","id":"g197afe225b9_0_20"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_5","id":"g19de3ffb5ac_0_5"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_10","id":"g19de3ffb5ac_0_10"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_15","id":"g19de3ffb5ac_0_15"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_20","id":"g19de3ffb5ac_0_20"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_25","id":"g19de3ffb5ac_0_25"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_30","id":"g19de3ffb5ac_0_30"},{"slideURL":"https:\/\/docs.google.com\/presentation\/d\/1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs\/export\/png?id=1-iRBwocnALP0KbT_TgjLO6OrfaooF1J8CDGUF-b-Sbs&pageid=g19de3ffb5ac_0_35","id":"g19de3ffb5ac_0_35"}],"artifacts":[[{"code":"function calc(i) {\n  var d = i.toLowerCase().trim();\n  var grade = 0;\n  var includedWords = [\"pressure\", \"temperature\", \"low\", \"high\"]\n\n  const everything = includedWords.every(term => d.includes(term));\n\n  if (everything) {\n    var press = d.split(\"pressure\")[0];\n    var temp = d.split(\"temperature\")[0];\n\n    \/\/------------------------------------------------------------\n    var highlow = [\"high\", \"low\"];\n    const pressM = highlow.every(term => press.includes(term));\n    const tempM = highlow.every(term => temp.includes(term));\n\n    if (pressM) {\n\n      if (temp.includes(\"high\") && !temp.includes(\"low\")) {\n        grade = grade + 100;\n      }\n    } else {\n\n      if (tempM) {\n\n        if (!press.includes(\"high\") && press.includes(\"low\")) {\n          grade = grade + 100;\n        }\n      }\n\n    }\n\n  }\n  return grade;\n}\n","displayName":"1","id":"1","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n  var d = i.toLowerCase().trim();\n  var grade = 0;\n  var group1 = [\"colli\", \"hit\", \"crash\", \"bounc\", \"bump\"];\n  var group2 = [\"wall\", \"container\"];\n  var group3 = [\"molec\", \"partic\", \"atom\"]\n\n  const result1 = group1.some(term => d.includes(term));\n  const result2 = group2.some(term => d.includes(term));\n  const result3 = group3.some(term => d.includes(term));\n\n  if (result1 && result2&& result3) {\n    grade = grade + 100;\n  }\n  return grade;\n}\n","displayName":"2","id":"2","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar studentAnswer =d.replace(\/[^a-zA-Z]+\/g, '');\nconst theAnswer = \"increaseincreasedecreaseincreasedecreasedecrease\";\n\n\n\nif (studentAnswer == theAnswer) {\ngrade = grade + 100;\n\n  \n  }\n    return grade;\n  }","displayName":"3","id":"3","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k > 23.59  && k<23.631) {\ngrade = grade + 84;\n\n  if (d.includes(\"l\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"4","id":"4","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k == 8.2) {\ngrade = grade + 84;\n\n  if (d.includes(\"l\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"5","id":"5","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k > 132.999999 && k < 133.33333334) {\ngrade = grade + 84;\n\n  if (d.includes(\"atm\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"6","id":"6","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k >489.9999999 && k< 490.1315789473685 ) {\ngrade = grade + 84;\n\n  if (d.includes(\"ml\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"7","id":"7","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k >181.24999&&k<181.4000001) {\ngrade = grade + 84;\n\n  if (d.includes(\"k\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"8","id":"8","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"},{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar increase = (d.match(\/increas\/g) || []).length;\nvar decrease = (d.match(\/decreas\/g) || []).length;\n\n\nif (decrease>0){\nvar eighta= d.split(\"decreas\")[0];\n\nif (eighta.includes(\"increas\") && decrease ==1){\ngrade = grade + 100;\n}\n\n}\n\n\n    return grade;\n  }","displayName":"8a","id":"8a","left":"0","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k > 3.889  & k < 3.900001) {\ngrade = grade + 84;\n\n  if (d.includes(\"l\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"9","id":"9","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k>66.7999 && k<67.3001) {\ngrade = grade + 84;\n\n  if (d.includes(\"atm\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"10","id":"10","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k > 0.47 && k < 0.4800001) {\ngrade = grade + 84;\n\n  if (d.includes(\"l\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"11","id":"11","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n\nvar k =d.replace(\/[^0-9.]\/g, '');\nif (k > 245.9999 && k < 246.200001) {\ngrade = grade + 84;\n\n  if (d.includes(\"k\")) {\n    grade = grade + 16;\n  }}\n    return grade;\n  }","displayName":"12","id":"12","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n   var d = i.toLowerCase().trim();\n  var grade = 0;\n const userInfo = getUserInformation();\n  let first= userInfo.firstname;\n  let last = userInfo.lastname;\n  let user = userInfo.username;\n\nlet initialVolume = first.length* 10;\nlet initialTemp = last.length *4;\nlet finalTemp = user.length * -3;\n\nlet initialTempK= initialTemp+273;\nlet finalTempK= finalTemp +273;\n\n\/\/   v1\/t1 = v2\/t2    -->   v2 = (v1 * t2)\/t1\n\n\nlet theAnswerFull = (initialVolume * finalTempK)\/ initialTempK;\nlet theAnswer =Math.round(100*theAnswerFull)\/100;\n\n\nvar k =d.replace(\/[^0-9.]\/g, '');\n\nif (k == theAnswer) {\ngrade = grade + 89;\n\n\nif (d.includes(\"l\")){\ngrade = grade + 11;\n}}\n\n  if (d.includes(\"?\")) {\n    alert ( \"\u27531 = \" + initialVolume + \" Liter \\n\u27532 = \" + initialTemp + \" \u00b0C \\n\u27533 = \" + finalTemp + \" \u00b0C \");\n  }\n    return grade;\n  }\n","displayName":"13","id":"13","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}],[{"code":"function calc(i) {\n  var d = i.toLowerCase().trim();\n  var grade = 0;\n  const userInfo = getUserInformation();\n  let first = userInfo.firstname;\n  let last = userInfo.lastname;\n  let user = userInfo.username;\n\n  let initialMass = first.length * 5;\n  let initialTemp = last.length * 3 + 100;\n  let initialVolume = user.length * 8;\n\n  let initialTempK = initialTemp + 273;\n  let numMoles = initialMass \/ 18;\n\n\n  \/\/   v1\/t1 = v2\/t2    -->   v2 = (v1 * t2)\/t1\n\n\n  let theAnswerFull = (numMoles * 0.0821 * initialTempK) \/ initialVolume;\n  let theAnswer = Math.round(100 * theAnswerFull) \/ 100;\n\n\n  var k = d.replace(\/[^0-9.]\/g, '');\n\n  if (k == theAnswer) {\n    grade = grade + 89;\n\n\n    if (d.includes(\"atm\")) {\n      grade = grade + 11;\n    }\n  }\n\n  if (d.includes(\"?\")) {\n    alert(\"\u27531 = \" + initialMass + \" grams \\n\u27532 = \" + initialTemp + \" \u00b0C \\n\u27533 = \" + initialVolume + \" Liters \");\n  }\n  return grade;\n}\n","displayName":"14","id":"14","left":" 750 ","top":" 350 ","widthX":" 150 ","widthY":" 300"}]]},"error":false}

Function Calls

None

Variables

None

Stats

MD5 c18e4825dedecfcc1ffd1c761eab5211
Eval Count 0
Decode Time 77 ms