Lesson Plan
Lesson Plan
Plenary/ Reflection / (Summarization):- Ask learners to give feedback on the topics, making
learner to do think like mathematician exercises.
Homework/Assignment:- learner’s book and workbook, exercise 2.1, 2.2, 2.3
Oct 2.2 using expressions -Describe the lesson participate the students in the lesson
22/24 and formulae ask different kinds of questions make discussion group
or in pair
Oct 2.2 using expressions -Describe the lesson participate the students in the lesson
23/24 and formulae ask different kinds of questions make discussion group
or in pair
Oct 2.3 expanding brackets -Describe the lesson participate the students in the lesson
24/24 ask different kinds of questions make discussion group
or in pair
Oct 2.3 expanding brackets -Describe the lesson participate the students in the lesson
25/24 ask different kinds of questions make discussion group
or in pair.
Plenary/ Reflection / (Summarization):- Ask learners to give feedback on the topics, making
learner to do think like mathematician exercises.
Homework/Assignment:- learner’s book, exercise 2.1,2.2, 2.3
Option Explicit
Name As String
Subject As String
Grade As String
PeriodsPerWeek As Integer
AssignedPeriods As Integer
End Type
Sub CreateSchedulingSystem()
CreateInputForm
FormatScheduleSheet
FormatTeacherListSheet
End Sub
Sub CreateRequiredSheets()
Dim ws As Worksheet
Application.DisplayAlerts = False
Next ws
Application.DisplayAlerts = True
With ThisWorkbook
.Sheets.Add(After:=.Sheets(.Sheets.Count)).Name = "Schedule"
.Sheets.Add(After:=.Sheets(.Sheets.Count)).Name = "Teachers"
.Sheets.Add(After:=.Sheets(.Sheets.Count)).Name = "Input"
End With
End Sub
Sub CreateInputForm()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Input")
With ws
.Cells.Clear
.Range("A1").Font.Size = 14
.Range("A1").Font.Bold = True
.Range("A4").Value = "Subject:"
.Range("A5").Value = "Grade:"
.Range("B3").Value = ""
With .Range("B4").Validation
.Delete
Operator:=xlBetween, Formula1:="Mathematics,English,Science,History,Geography"
End With
' Create grade dropdown
With .Range("B5").Validation
.Delete
Operator:=xlBetween, Formula1:="9,10,11,12"
End With
With .Range("B6").Validation
.Delete
End With
' Format
.Columns("A:B").AutoFit
End With
End Sub
Sub CreateButton(ws As Worksheet, ButtonText As String, MacroName As String, Left As Double, Top As
Double)
With btn
.Text = ButtonText
.OnAction = MacroName
End With
End Sub
Sub FormatScheduleSheet()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Schedule")
With ws
.Cells.Clear
.Range("A1").Value = "Time"
.Range("B1").Value = "Monday"
.Range("C1").Value = "Tuesday"
.Range("D1").Value = "Wednesday"
.Range("E1").Value = "Thursday"
.Range("F1").Value = "Friday"
.Range("A2").Value = "8:00-9:00"
.Range("A3").Value = "9:00-10:00"
.Range("A4").Value = "10:00-11:00"
.Range("A5").Value = "11:00-12:00"
.Range("A6").Value = "12:00-1:00"
.Range("A7").Value = "1:00-2:00"
.Range("A8").Value = "2:00-3:00"
.Range("A9").Value = "3:00-4:00"
' Format
.Range("A1:F1").Font.Bold = True
.Range("A1:F9").Borders.LineStyle = xlContinuous
.Columns("A:F").AutoFit
End With
End Sub
Sub FormatTeacherListSheet()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Teachers")
With ws
.Cells.Clear
.Range("B1").Value = "Subject"
.Range("C1").Value = "Grade"
.Range("D1").Value = "Periods/Week"
' Format
.Range("A1:D1").Font.Bold = True
.Columns("A:D").AutoFit
End With
End Sub
Sub AddTeacher()
Exit Sub
End If
With wsTeachers
End With
wsInput.Range("B3:B6").ClearContents
MsgBox "Teacher added successfully!", vbInformation
End Sub
Sub GenerateSchedule()
Dim i As Long
If lastRow = 1 Then
Exit Sub
End If
For i = 1 To lastRow - 1
With teachers(i)
End With
Next i
wsSchedule.Range("B2:F9").ClearContents
End Sub
teacherCount = UBound(teachers)
For i = 1 To teacherCount
slotFound = False
For day = 1 To 5
For period = 1 To 8
teachers(i).AssignedPeriods = teachers(i).AssignedPeriods + 1
slotFound = True
Exit For
End If
End If
Next period
Next day
MsgBox "Could not assign all periods for " & teachers(i).Name, vbExclamation
Exit Sub
End If
Wend
Next i
End Sub
TeacherHasClassOnDay = True
Exit Function
End If
End If
Next period
TeacherHasClassOnDay = False
End Function