Class Advisor

by Juan Alban Franco

HTML

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style>
div.initList {
  background-color : white;
  width : 80%;
  height : 135px;
  overflow: scroll;
  border-style : solid;}

div.main{
  width : 90%;
  height : 90%;
  margin: 0 auto;
  
}
  
</style>
<div class="w3-container w3-teal">
  <h1>Class Advisor</h1>
</div>
</head>

<body>
  <div class = "main">
  <br>
  <h3>
      Please select the classes you have already taken from the list below
  For the sake of the assignment, the program assumes the student is eligible for Calculus.
  </h3>
  <br>
  
    <div id = "box" class = "initList">
    </div>
    <input type = button value = "Done Selecting" id = done>
    <br>
    <br>
      Math Requirements
    <div id = "mathBox" class = "initList">
    </div>

</div>
</body>
</html>

JavaScript

$(document).ready(function() {
  // executes when HTML-Document is loaded and DOM is ready
  createStandardList();
  createMathList();
});

var newCourseList = [
	{
  	"Course" : "COP1000",
    "Name" : "Principles of Computer Programming",
    "PreReq" : ""
  },
  {
  	"Course" : "COP2220",
    "Name" : "Computer Programming C",
    "PreReq" : ["COP1000","MAC1105"] 
  },
  {
  	"Course" : "COP2001" ,
    "Name" : "Computer Programming C++",
    "PreReq" : ["COP100"]
  },
  {
  	"Course" : "COP2800",
    "Name" : "Computer Programming Java",
    "PreReq" : ["COP100"] 
  },
    {
   	"Course" : "COP2360",
    "Name" : "C# Programming",
    "PreReq" : ["COP100"]
  },
	{
		"Course" : "COP3530",
    "Name" : "Data Structures",
    "PreReq" : [["COP2800","COP2011","COP2220","COP2360"]]
  },
  { 
   	"Course" : "MAC2311C",
    "Name" : "C# Programming",
    "PreReq" : ["COP100"]
  
  }

  
]

var courselist = [{
  "Course": "MAC1105",
  "Name": "College Algebra"
}, {
  "Course": "MAC1114",
  "Name": "Trigonometry",
  "PreReq": ["MAC1105"]
}, {
  "Course": "MAC1140",
  "Name": "PreCalculus",
  "PreReq": ["MAC1105"]
}, {
  "Course": "MAC2311",
  "Name": "Calculus",
  "PreReq": ["MAC1140", "MAC1114"]
}, {
  "Course": "COT3100",
  "Name": "Discrete Analaysis",
  "PreReq": ["MAC1105"]
}, {
  "Course": "COP1000",
  "Name": "Principles of Programming"
},
 {
  	"Course" : "COP2220",
    "Name" : "Computer Programming C",
    "PreReq" : ["COP1000","MAC1105"] 
  },
  {
  	"Course" : "COP2001" ,
    "Name" : "Computer Programming C++",
    "PreReq" : ["COP100"]
  },
  {
  	"Course" : "COP2800",
    "Name" : "Computer Programming Java",
    "PreReq" : ["COP100"] 
  },
    {
   	"Course" : "COP2360",
    "Name" : "C# Programming",
    "PreReq" : ["COP100"]
  },
  {
  "Course": "COP2800",
  "Name": "Java Programming",
  "PreReq": ["COP1000"]
},
  {
  "Course": "CTS2321",
  "Name": "Linux Fundamentals"
},
{
  "Course": "CTS3348",
  "Name": "Linux Administration",
  "PreReq":...