The Effect of Using Computer Simulation on Students’ Performance in Teaching and Learning Physics: Are There Any Gender and Area Gaps?

(e aim of this study is to determine the effect of using computer simulation on students’ performance in teaching and learning physical science, particularly the electrical Ohm’s law. A sample of 182 students classified into two groups–experimental (92) and control (90)–from two middle schools in Meknes city (one in the rural area and the other urban area) was the subject of a pretest and posttest evaluation. (e outcomes of the administered test to both groups of students, control and experimental, were compared and analyzed using Student’s t-test and the Mann–Whitney U test with Statistical Package for the Social Sciences (SPSS). (e results obtained suggest that the experimental group register the best performances after the posttest than the control group (p< 0.05). While no difference, in terms of performance, was signed according to gender in the experimental group (p> 0.05), the urban students were more successful than the rural ones, with and without the use of simulations. In this respect, this study recommended using and practicing simulation software to improve and develop the performance of middle school students.


Introduction
e most important thing in science education is the practical side and hands-on training, especially in secondary schools, where the students gradually begin to embody their learning and use their observation skills, analysis, and conclusion. ere are different ways, methods, and strategies of science teaching due to the accumulation of information and the increase and complexity of knowledge; it has appeared urgent to find a style or method to simplify and facilitate the transfer of information in the minds of students.
With scientific development and technological revolution, computer simulation technology and the use of its models such as virtual reality, artificial intelligence, and others have arisen, and the need to take advantage of it to develop education and solve its problems and serve the learner and the teacher is already reflected in the improvement of the efficiency of the educational process [1].
Educational computer simulation programs are considered to be one of the best and most powerful educational computer programs when used in science education if properly programmed. It is based on the principle of constructivist philosophy, which emphasizes that the student learns through scientific experience; these are also computer-generated dynamic models, which can explain the concept or simplified model of a component, of a phenomenon or conceptual process in the real world, consisting of animation, visualization, and interactive laboratory experiences [2]. e uses of computer simulations can activate multiple skills in science learners such as observing, measuring, predicting, controlling variables, formulating hypotheses, and interpreting results [1,3]. It allows learners to explicitly develop metacognition and allows them to reflect on their learning [1], improve motivation and interest in the class [4], and to present itself as an effective prediction tool [5]. One method has shown that nonverbal representations stimulate brain activity [6]. Simulation can multiply the forms of representation (images, animations, graphics, and digital data). By allowing the learner to choose the representations he prefers, this allows him to individualize learning, increase his motivation, and follow in the footsteps of learners throughout their learning [7].
Many science researchers attempt to answer such a question through studies that focus on the effects of computer simulations on students' understanding of science concepts as well as on motivation. ese researchers studied the effectiveness of computer simulations from different points of view. Some researchers have studied the efficiency of computer simulations compared to the traditional method [8][9][10], and some have used simulations to improve the efficiency of traditional methods [11] as well as to effectively improve students' understanding of the difficult concept instead of the traditional method [12]. Other researchers have used simulations as prelaboratory activities to improve the efficiency of laboratory equipment [4,13,14], while some have studied whether computer simulations can replace real equipment [15,16].

Statement of the Problem.
e teaching of science in Moroccan middle schools suffers from many problems, including the curriculum, the students, the teaching methods used, the availability of tools, materials, teaching techniques, and the school environment.
Studies conducted by [17,18] show that there is a low performance of students in science in general and in physical science in particular, in different stages of education. In addition, the results of the survey TIMSS 2019 (Trends in International Mathematics and Science Study) [19], which measures science and mathematics proficiency among primary and middle school students, place Morocco among the last countries in terms of students' aptitude in mathematics and science, but only slightly ahead of 2015 [20], and at the bottom of the OECD survey (L' Organization for Economic Cooperation and Development) [21] with regard to the general performance in reading, science, mathematics, and girls' performance is better than boys in science, and also, the school performance of rural students is low compared to urban ones. Another research indicates that science education in Morocco faces several challenges such as the poor performance of students in physical sciences [22]. As a result, a change should be made in the mechanisms that deal with the curriculum, in particular in the presentation of educational content and teaching methods, as the provision of content in accordance with educational programs, including computerized programs and the use of modern teaching strategies including interactive computer simulations PhET (Physics Education Technology) which was developed by the University of Colorado at Boulder [23]. e use of PhET simulation is important to improve students' understanding and motivation in learning about "electrical resistance and the Ohm's law" "electricity." PhET interactive simulations transfer the learner from the passive recipient of the material to the role of interacting with him, enhance his learning [24], which will shift the role of the teacher from the vector information in a rigid format to students in order to memorize them and recall them during the examination to an interactive teacher in a learning environment that allows the learner to follow their learning step by step, and is responsible for providing simple activities and situations closest to reality, thanks to the computerization of the material.
Although some research studies have covered the topic of PhET interactive computer simulations and their impact on success, these studies have not given sufficient interest to study PhET techniques among third-year middle school students, particularly in Moroccan schools, and their impact on academic success in rural areas.
is research is a study in which rural and urban students use interactive computer simulation to overcome some of the difficulties associated with the concept of "electrical resistance and the Ohm's Law," and to improve their scientific understanding and motivation, interactive simulations are used for the experimental group, while the control group followed the lesson under traditional conditions to compare their effects with the effects of interactive simulations on the realization. Finally, the study aims to analyze the effects of interactive simulations on the academic performance of third year students.

Research Questions.
Based on this aim of the study, the following research questions were identified: (1) Is there a significant statistical difference in students' performance, as measured by the pretest and posttest scores, between students taught through computer simulations and those taught traditionally (2) Is there a significant statistical difference between the performance of males and females in the two groups (experimental and control), according to pretest scores of the students (3) Is there a significant statistical difference between the performance of males and females in the experimental group, according to posttest scores of the students (4) Is there a significant statistical difference between the performance of rural and urban area students, according to pretest and posttest scores of the students

Ethical Considerations.
Before the study, we informed the students that the lesson would be conducted in an academic environment that took ethical principles into account. Students are free to attend the lesson during which the activity is carried out. In addition, it is announced that the data collected may be shared in a scientific journal. However, according to correspondence sent by the Ministry of National Education to school principals, the taking of photos of students is subject to prior authorization from their parents. erefore, students are informed that no visuals will be used in the study and that they are not actually used.

Study Design.
To assess the impact of the use of simulation on student learning, a semiexperimental design with a pretest and a posttest was used. We used 6 classes in this study to create 2 groups, where 3 classes as a control group and 3 classes as an experimental group. e choice of these two groups picked randomly was made from 6 different classes of 3rd year middle school, from two Moroccan schools in the city of Meknes, Zaitoune and El Yasmine middle schools.
In the experimental group, students learned with simulation PhET (Physics Education Technology) entitled "Ohm's Law," while students in the control group learned the conventional method using the multimedia product.

e Target Population.
e target population for this study was composed of 182 students in 3rd middle school (males: 93 and females: 89) who were at two middle schools in the province of Meknes during the spring semester of the 2018-2019 school year, as illustrated in Tables 1 and 2.

Distribution of Students by Gender and the Method
Used. From the results in Table 1, we see that among the total number of pupils taken by the study, there are 49 male pupils who were the subject of the traditional method (that is, 26.9% of the total), whereas 44 are the subject to the experimental method (24.2%). For female students, there are 41 students who used the traditional method (22.5%) and 48 students who used the experimental method (26.4%).

Distribution of Students by Gender and Area.
e results in Table 1 show that out of a total of 182 pupils concerned by the study, there are 93 male pupils (51.1%) of whom 60 follow their studies in the rural or semirural (33%) and 33 are studying in the urban environment (18.1%). Concerning female students, there are 89 students (48.9% of the total), of which 58 students follow their studies in rural or semirural areas (31.9%) and 31 study in urban areas (i.e., 17%).

Distribution of Students by the Study Area and Method
Used.
e results in Table 2 show that among the 182 pupils studied, there are, respectively, 59 pupils from rural areas (i.e., 32.4%) and 31 pupils from urban areas (i.e., 17%) who are used for the traditional method. Also, 59 (32.4%) students were from the rural area and 33 (18.1%) students from the urban area, respectively, have undergone the experimental test method.

Research Instruments.
e study data were collected using a performance test (pretest/posttest). e pretest assessed the prior knowledge of learners in both groups on the topic of electricity and consisted of 5 closed-ended questions with one choice and 3 closed-ended questions. e posttest was used to determine the effect of the use of the computer simulation on the learners' performance and consisted of 5 closed-ended questions with a one-choice answer and 3 closed-ended questions. After the advice of two teachers and a pedagogical physics inspector with long experience in secondary education and the necessary modifications, the performance test was carried out with 34 students to examine the reliability of the test items.
Cronbach's alpha value was calculated (pretest, 0.780; posttest, 0.708), which allowed us to apply the test items to both groups before and after the implementation of the study.

Research Procedure and Data Analysis.
We applied a pretest to learners in both groups before the study began. After that, the experimental group was taught using simulation activities for four hours over two weeks for each class. e simulation is a flash animation that allows students to follow the plotting of characteristics during the study of Ohm's law (measurements, choice of units, scales, placement of points, plotting of characteristics, and formulation of the law of proportionality); it is from PhET (Physics Education Technology) group at the University of Colorado at Boulder taken from http://phet.colorado.edu/sims/cck/cck-dc.jnlp. Screenshots of the simulation are shown in Figure 1. e control group used a multimedia product when learning about the same subject with the experimental group. Due to the lack of computers, we divided the students into groups of three members per computer (the computer room contains 10 computers) with a sheet (practical work-Ohm's law simulation). A video projector connected to the teacher's computer was used in parallel to support and guide the students in the construction of their knowledge and to answer any technical questions. After completing the study process, we distributed the posttest material to two groups. e data collected were analyzed using IBM SPSS (Statistical Package for the Social Sciences) version 23. Descriptive statistics (minimum, maximum, mean, and standard deviations) and inferential statistics (Student's ttest and Mann-Whitney nonparametric U test) were used to analyses the data. All the results were interpreted at p < 0.05.

Results and Discussion
Our main objective is to study the impact of simulation interactive on student learning. To achieve this, we first analyzed and compared the results of the pretest according to gender, area, and the adopted method. Second, we compared the posttest results according to gender, area, and the adopted method. All analyses were performed using Education Research International 3 SPSS Statistics 23 to calculate the average value, medians, and standard deviations. In this study, to measure the distribution of the data, the method used is the Kolmogorov-Smirnov method because the number of samples is ≥ 25. e data are called as normal distribution if the Kolmogorov-Smirnov value is ≥ the significant value (0.05).
e results of the normal distribution in both groups (control and experimental) are presented in two tables (Tables 3 and 4). e p value of Kolmogorov-Smirnov in the experimental group is 0.001 ≤ significant value 0.05 (has no normalized distribution), while the control group is 0.158 ≥ significant value 0.05 (the distribution is normalized). Because one of the groups does not have a normal population distribution, we used the Mann-Whitney U test to compare the results.
e Kolmogorov-Smirnov p value of the sex is F � 0.013 and M � 0.10, and the Kolmogorov-Smirnov value of the   area is rural � 0.000 and urban � 0.200; there is no normal distribution, so the Mann-Whitney method will be used. Table 4 shows that the Kolmogorov-Smirnov p value of the method used is traditional � 0.004 and experimental � 0.023; in this case, the distribution of values does not follow the normal distribution because the Kolmogorov-Smirnov p value is ≤ the alpha level (0,05). erefore, the method that will be used is the Mann-Whitney method.
However, the p value of Kolmogorov-Smirnov of gender (pilot) and area (pilot) is ≥ 0.05. In this case, we will use the method of t-test students.

Results and Discussion of the Diagnostic Test.
In order to give meaning to the results of the study, we will first try to compare the means of the students, subject of the study, according to gender, environment, and the method used.
e results obtained are reported in Table 5.

Students' Performances in the Diagnostic Test according to the Method Used.
e distribution of the means of the two middle schools in the pilot group and the control is shown in Figure 2.
e results of the experimental group show that 33.7% of the students had scores below 8/20, and only 34.78% achieved satisfactory results (score is above 12/20), with an observed average of order of 11.05/20. e same trend was recorded in the control group (frequency of grades [0, 8 [,] 12, 20] are 32.22% and 33.33%, respectively, with an observed average 10.66/20). In terms of knowledge, both groups have very little knowledge about Ohm's law, as the average score of both groups does not exceed 12. On the other hand, since no student has an average score of 0.00, it can mean that all students have basic knowledge of Ohm's law. Perhaps, this is because many students have studied electrical resistance in the second year middle school. Table 5 shows that the two groups have the same median values and that the students' means of the experimental group in the pretest is m � 11.05 (σ � 4.40) which is higher than the general average m � 10.86 while that of the control group students is m � 10.66 (σ � 3.98) below the general average. e calculation of the variation coefficients of the two groups shows that the scores of the control group are rather dispersed (coefficient of variation, CV � 39.83%) compared to the scores of the control group (CV � 37.31%).
To test whether this difference is significant and to accept the hypothesis that no significant difference existed between the two groups at the time of the pretest, we used the Mann-Whitney U test (in this case, the distribution of the values does not follow the normal distribution because the p value of Kolmogorov-Smirnov is lower than the chosen alpha level). e results of the comparison are presented in Table 6 (pretest according to the method).
For the Mann-Whitney test, certain norms are used as a basis for the decision-making hypotheses.
e Mann-Whitney test norms are as follows: if Asymp. Sig. (2tailed) ≤0.05, then Ha is accepted. If Asymp. Sig. (2 tails) ≥ 0.05, then Ha is rejected. Based on Table 6, the result showed that Asymp. Sig. (2-tailed) is p � 0.665 > 0.05. It can be concluded that hypothesis Ha was rejected for the Mann-Whitney test. It can therefore be said that there is no significant difference between the groups (control and experimental). is implies that the two groups had the same level of knowledge, which is explained by the use of the complete system of school management "MASSAR," which already ensures the equivalence repartition between the groups during the constitution of the classes.
is result allows us to validate our experimental model based on a pretest and a posttest. Table 5, it can be seen, on the one hand, that the general average is around 10.86 with a standard deviation of around 4.19. e calculation of the coefficient of variation (CV) shows that the scores are moderately dispersed around the mean (CV≈0.387 or 38.7%). On the other hand, the median grade is 10.00. In other words, 50% of the students have a grade higher than 10.00, and the remaining 50% have a grade lower than ten (<10.00). More importantly, Table 5 shows that boys have an average equal to 10.05 which is lower than the general average, while girls have an average (11.70) higher than the general average. e calculation of the variation coefficients of the two genders shows that the scores of boys are rather dispersed (CV � 40.43%) compared to the scores of girls (CV � 35.7%).

Students' Performances in the Diagnostic Test according to Gender. From the results in
Despite these results, it cannot be confirmed that there is a statistical difference between males and females in terms of  is is a lower bound of the true significance. a Lilliefors significance correction Education Research International performance. And for this, we used the Mann-Whitney test to compare the means of the two independent samples. A level of significance α of 0.05 (α � 5%) was used for interpreting the results which are presented in Table 6 (pretest by gender).
According to Table 6, the Asymp. Sig. (2-tailed) is p � 0.005 < 0.05 which is significant. It can be said that there is a significant difference between boys and girls in the diagnostic test (pretest). Girls are therefore more efficient than boys. is is because girls are more attentive in class, more focused, and more disciplined at work, while boys are more focused on games than girls, spend less time on study, and less disciplined. Because of this behavior, girls score better in Morocco as well as in many other countries than boys.
ese results are consistent with the TIMSS study (2015), concerning student performance by gender in science, and also, it is in high agreement with the study released by [25]. Table 5 shows that students in rural areas and students in urban ones do not have the same medians: the median in the urban area (12.50) is higher to that in the rural area (9.00). e standard deviation of the results in the rural area is slightly lower than that in the urban area. So, we can consider that the pupils of the two zones do not have the same strength. at is, there is a more marked difference between the results of students in the two zones (rural CV � 39% and urban CV � 32%).

Students' Performances in the Diagnostic Test according to the Area.
In order to test the importance of the difference between the mean scores, the Mann-Whitney U test of independent samples was used, and the results are presented in Table 6 above (pretest according to the area) (Asymp. Sig. (2-tailed) is 0.000 < 0.05) which confirms that the average of students in urban areas was significantly higher than that of students in rural ones. is result can be explained by the determinants linked to the socioeconomic situation of the parents.   Most of the students from rural areas in our case are coming from poor families and helping their parents, without forgetting the school context and the family context in which most parents have low educational levels, and also, the school environment in rural areas influences their performance. is result is in agreement with the study of [26]. Also, the authors found the negative impact of the pupil's occupation (pupil work in crafts or agriculture) on school performance, and this can be explained by the health problems which can generate, especially work in the field of crafts.

Results and Discussion of the Posttest.
e posttest results that were obtained were analyzed statistically using SPSS software and are reported in Table 7.

Students' Performances in the Posttest according to the Method Used.
e posttest correction in the two groups made it possible to obtain the results represented by the graph as shown in Figure 3. We emphasize that these results are expressed in terms of percentage of correct answers.
According to these results, the majority of the students in the pilot group (82%) belong to the class whose marks are higher than 8/20, while the majority of the students in the control group (37%) have achieved marks lower than 8/20. Almost, the same frequency of means [8,12] was recorded in both groups (almost 40%). Table 7 shows that the average of the students in the experimental group in the posttest is average (av) � 12.01 (σ � 3.863) while that of the students in the control group is av � 10.09 (σ � 3.0); the difference is 1.92, and also, the two groups do not have the same median values. Despite the difference observed in the means obtained according to various previous analyzes, it cannot be confirmed whether there is a significant difference between the compared groups or not. In order to make sense of these results, the Mann-Whitney U test of independent samples was used.
e results of the comparison are reported in Table 8 (posttest according to the method). e analysis of the results (Table 8) shows that Asymp. Sig. (2-tailed) is p � 0.001 which is less than 0.05. We can conclude that hypothesis Ha is accepted for Mann-Whitney. As a result, it can be said that there is a significant difference in favor of the experimental group in the posttest. is result indicates that the experimental group is more efficient than the control group, which is due to the teaching of scientific materials for the benefit of students in a modern way that contains multimedia that simulates reality and helps students to understand physical terms and difficult concepts, and it makes the process of learning physics, especially the part of electricity, easy and pleasant, while it allows students to change the variables of experience and get the desired result with ease and without fear or hesitation or even the timidity of the rest of their classmates. It also works to consider individual difference.
is method emphasized the role of students in autonomy which helped their self-confidence. e latest had a clear impact on improving the learning outcome. is outcome agreed with the result of the study [27] which stressed that physics simulations offer interactive learning opportunities for learners in this subject. Simulations of physics experiments stimulate more meaning. ey improve student motivation and make lessons more interesting, focus their attention on learning, provide beautiful diagrams, and enjoy when doing simulations on computers. is can be   Education Research International 7 attributed to the facilitation and simplification of physical concepts that almost need to be made easy for improving the students' thought processes. is had a positive influence on the acquisition and storage of information. e result of the present study was approved with the result of the studies [28,29], as well as with the result of the study [30]. Other surveys [31,32] have shown that the use of computer simulations had a positive effect on student results which are in line with our results. However, a recent study shows that there was no significant difference in scientific success between the traditional practical method and the computeraided simulation method [33]; this inconsistency may be due to the type of concepts taught, to the type of simulation used, to the intervention of foreign variables, to the size of the sample, and to the different models used, and this does not prove that the computer simulation method is not feasible and effective in the educational process because the results of most studies that have compared between the computer simulation and the ordinary teaching methods indicate the advantage of the computer simulation method.

Students' Performances in the Posttest according to
Gender of the Experimental Group. Table 7 shows that girls have an average equal to 11.82 which is lower than the general average, while boys have an average (12.20) higher than the general average. e calculation of the variation coefficients of both males and females shows that the girls' scores are rather dispersed (CV � 33.24%) compared to the boys' scores (CV � 31.35%). Despite these results, it cannot be confirmed that there is a significant statistical difference between the two sexes in terms of performance. To test the significant difference between the means of two independent samples having a normal distribution (Table 4), we used the t-test of the students. e results are presented in Table 9 (posttest by gender pilot). Table 9 results show that there is no significant difference between girls and boys if the computer simulations were used in the experimental group (t � 0.471 and p value 0.639 > 0.05).
us, this suggests that computer simulations do not discriminate against the sexes. Our results are supported by the findings of Sentongo and Stern [30,34].

Students' Performances of the Experimental Group in
the Posttest according to the Area. Table 7 shows that students in rural areas and students in urban ones do not have the same medians: the median for urban area students (14.00) is higher than that in rural area ones (11.00). e standard deviation for the urban area students is slightly lower than that for the rural area students. e calculation of the variation coefficients in the two zones shows that the scores for the rural area students are rather dispersed (CV � 33.7%) compared to the scores for the urban area students (CV � 26.7%). Despite the differences observed, we cannot confirm whether there is a significant difference between the urban and rural areas or not. So, we have to use the t-test technique for independent samples (having a normal distribution) as shown in Table 9. Table 9 (posttest according to the area pilot) provides that the p test value is p � 0.005 < 0.05 which is significant. is result allows us to conclude that there is a significant difference between the students of two zones who use the simulation. Students in urban areas, therefore, appear to perform better than students in rural ones. is is due to the fact that urban area students perform better than rural area ones because they have more or less easy access to the computer tool and to the Internet connection through libraries, cultural centers, centers of support, and cyber cafés, while rural area students face many difficulties such as living far from school, power outages, almost complete lack of Internet connection, and lack of transportation. All these factors have a remarkable impact on the students' learning process.

Conclusion
is study attempted to identify the impact of the use of computer simulations on learning middle school in the provincial directorate of education, Meknes. e sample for this study was selected from public schools where computers are available to apply the experiment. Statistical data collected from the semiexperimental research using a pretest and a posttest with an experimental group and a control group showed that students in the experimental group who were taught using simulations were more successful than the group students who were taught by the traditional approach. Furthermore, there was no difference between the results of boys and girls in the experimental group, which suggests that computer simulations do not discriminate against the sexes and that the results of students in the rural areas are slightly lower than those of urban students with or without the use of computer simulators. At the end of this research, we can say that the chosen simulation had a positive impact on the performance of the students in the experimental group and refined their understanding (a cognitive process essential for improving skills application) and therefore enabled them to overcome certain learning difficulties.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest.