Init next.js port
This commit is contained in:
		
							
								
								
									
										23
									
								
								public/grade-calc/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								public/grade-calc/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
# Grade Calculator
 | 
			
		||||
 | 
			
		||||
Some professors do not properly configure the Canvas grade percentages based on their syllabus. Instead, they opt to use Excel to calculate the final grades after everything. It can be hard to estimate how much effort I should allocate for those classes without making an Excel file.
 | 
			
		||||
 | 
			
		||||
So I wrote this to quickly configure a calculator to see what I will end up getting in a class based on how much effort I put in.
 | 
			
		||||
 | 
			
		||||
## Short Summary of the JSON structure
 | 
			
		||||
 | 
			
		||||
The JSON is expected to have an array of section descriptions.
 | 
			
		||||
 | 
			
		||||
`name : string` is used as the class name. They have to be unique for each section to work as expected.
 | 
			
		||||
 | 
			
		||||
`title : string` is used as the heading for the sections.
 | 
			
		||||
 | 
			
		||||
`percentage : number` is used to weigh the section for the final grade.
 | 
			
		||||
 | 
			
		||||
`output : boolean` when true, it calculates the section score.
 | 
			
		||||
 | 
			
		||||
`points : [number]` used for each assignment in the section.
 | 
			
		||||
 | 
			
		||||
`bothMethods : boolean` when true, the weighted and unweighted scores are calculated.
 | 
			
		||||
 | 
			
		||||
`info : string` used for section description.
 | 
			
		||||
							
								
								
									
										25
									
								
								public/grade-calc/config/eee3307c.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								public/grade-calc/config/eee3307c.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
[
 | 
			
		||||
    {
 | 
			
		||||
        "name": "final",
 | 
			
		||||
        "title": "Final",
 | 
			
		||||
        "percentage": 40,
 | 
			
		||||
        "info": ""
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "midterm",
 | 
			
		||||
        "title": "Midterm",
 | 
			
		||||
        "percentage": 30
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "homework",
 | 
			
		||||
        "title": "Homework",
 | 
			
		||||
        "percentage": 10,
 | 
			
		||||
        "points": [100,100,100,100,100,100]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "lab",
 | 
			
		||||
        "title": "Lab",
 | 
			
		||||
        "percentage": 20,
 | 
			
		||||
        "info": "Lab score is accurate and does not need any sub-calculation."
 | 
			
		||||
    }
 | 
			
		||||
]
 | 
			
		||||
							
								
								
									
										29
									
								
								public/grade-calc/config/eel4742c.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								public/grade-calc/config/eel4742c.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
[
 | 
			
		||||
	{
 | 
			
		||||
		"name": "exams",
 | 
			
		||||
		"percentage": 70,
 | 
			
		||||
		"points": [
 | 
			
		||||
		  100,
 | 
			
		||||
		  100,
 | 
			
		||||
		  100
 | 
			
		||||
		],
 | 
			
		||||
		"title": "Exams"
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		"name": "homework",
 | 
			
		||||
		"percentage": 15,
 | 
			
		||||
		"points": [
 | 
			
		||||
		  90,
 | 
			
		||||
		  50,
 | 
			
		||||
		  110,
 | 
			
		||||
		  90
 | 
			
		||||
		],
 | 
			
		||||
		"title": "Homework"
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		"info": "Lab score is accurate and does not need any sub-calculation.",
 | 
			
		||||
		"name": "lab",
 | 
			
		||||
		"percentage": 15,
 | 
			
		||||
		"title": "Lab"
 | 
			
		||||
	}
 | 
			
		||||
]
 | 
			
		||||
							
								
								
									
										35
									
								
								public/grade-calc/config/eel4781.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								public/grade-calc/config/eel4781.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
[
 | 
			
		||||
	{
 | 
			
		||||
		"name": "midterm",
 | 
			
		||||
		"percentage": 25,
 | 
			
		||||
		"info":"http://www.ece.ucf.edu/~yuksem/teaching/EEL-4781-Spring-2021.html"
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		"name": "final",
 | 
			
		||||
		"percentage": 25
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		"name": "project",
 | 
			
		||||
		"percentage": 15,
 | 
			
		||||
		"info":"Webserver project"
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		"name": "homework",
 | 
			
		||||
		"percentage": 20,
 | 
			
		||||
		"points": [
 | 
			
		||||
		  100,
 | 
			
		||||
		  100,
 | 
			
		||||
		  100,
 | 
			
		||||
		  100,
 | 
			
		||||
		  100
 | 
			
		||||
		]
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		"name": "lab",
 | 
			
		||||
		"percentage": 15,
 | 
			
		||||
		"points": [
 | 
			
		||||
		  100,
 | 
			
		||||
		  100
 | 
			
		||||
		]
 | 
			
		||||
	}
 | 
			
		||||
]
 | 
			
		||||
							
								
								
									
										41
									
								
								public/grade-calc/config/map2302.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								public/grade-calc/config/map2302.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
[
 | 
			
		||||
    {
 | 
			
		||||
        "name": "final",
 | 
			
		||||
        "title": "Final",
 | 
			
		||||
        "percentage": 25,
 | 
			
		||||
        "info": ""
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "midterm",
 | 
			
		||||
        "title": "Midterm",
 | 
			
		||||
        "percentage": 50,
 | 
			
		||||
        "points": [
 | 
			
		||||
            20,
 | 
			
		||||
            20,
 | 
			
		||||
            20
 | 
			
		||||
        ],
 | 
			
		||||
        "output": true
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "quiz",
 | 
			
		||||
        "title": "Quiz",
 | 
			
		||||
        "percentage": 10,
 | 
			
		||||
        "points": [
 | 
			
		||||
            30,
 | 
			
		||||
            10,
 | 
			
		||||
            15
 | 
			
		||||
        ],
 | 
			
		||||
        "output": true,
 | 
			
		||||
        "bothMethods": true
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "homework",
 | 
			
		||||
        "title": "Homework",
 | 
			
		||||
        "percentage": 10
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "name": "attendance",
 | 
			
		||||
        "title": "Attendance",
 | 
			
		||||
        "percentage": 5
 | 
			
		||||
    }
 | 
			
		||||
]
 | 
			
		||||
		Reference in New Issue
	
	Block a user