Update samples/General/QuizMarks/QuizMarks.ring - Comments Format
-#==============================================================#
+#====================================================================#
# Application: Quiz Marks
# Author : Mahmoud Fayed
# Date : 2023-01-29
-#==============================================================#
+#====================================================================#
# We have a Quiz that contains 100 questions (True/False)
# Input:
# (1) The correct answer (aCorrect)
# (2) Students Marks (of 10)
# (3) Detect the Wrong Answers
# (4) CSV File contains the results
-#==============================================================#
+#====================================================================#
-#==============================================================#
+#====================================================================#
# Load the Application Data
-#==============================================================#
+#====================================================================#
load "data.ring"
-#==============================================================#
+#====================================================================#
# Display General Information
-#==============================================================#
+#====================================================================#
line = func { ? copy("=",70) }
-
call line()
? " Students Count : " + len(aStudents)
? " Questions Count : " + C_QUESTIONSCOUNT
call line()
-#==============================================================#
+#====================================================================#
# Prepare Results (Marks)
-#==============================================================#
+#====================================================================#
aMarks = [["Student ID","Wrong Answers","Score of 100","Marks of 10"]]
for student in aStudents
@@ -60,16 +59,16 @@ for student in aStudents
next
call line()
-#==============================================================#
+#====================================================================#
# Create the CSV File
-#==============================================================#
+#====================================================================#
load "csvlib.ring"
write("marks.csv",list2csv(aMarks))
-#==============================================================#
+#====================================================================#
# Adding a GUI using RingQt & GUILib
-#==============================================================#
+#====================================================================#
load "guilib.ring"
import System.GUI
@@ -87,6 +86,6 @@ new App {
exec()
}
-#==============================================================#
-# /\/R\/I\/N\/G\/\/I\/S\/\/F\/U\/N\/\/|_-_|\/E\/N\/J\/O\/Y\/!\|
-#==============================================================#
\ No newline at end of file
+#====================================================================#
+#---/\/R\/I\/N\/G\/\/I\/S\/\/F\/U\/N\/\/|_-_|\/E\/N\/J\/O\/Y\/!\/\---#
+#====================================================================#
\ No newline at end of file
