Automated Assessment of Basic C Programming using Pseudo-Code Comparison Technique

This is the tool to execute the above mentioned experiment. I’m providing the code so that any interested party can improve this experiment.

Synopsis/Abstract:

Programming exercise is an important activity in learning any programming language. In order to acquire the skill to program is by doing a lot of programming exercises. However, if the instructors give more exercises, the more workload they will bear to assess and grade all the exercises submitted by their students. The workload can be reduced if the instructors are provided with a tool that can assesses and grades the programming exercises automatically. Automated programming assessment is a method to evaluate and to grade students’ programming exercises without the hassle of doing it manually. This application is developed to assess student C programming exercises based on the pseudocodes. The purpose of this project is to find the percentage of the pseudocode similarity between student’s answer and the instructor’s scheme. The method used in the software is by translating the students’ programming answer and all the instructors’ answer schemes into pseudocode. The software will compare the students’ pseudocode with all the pseudocode from the instructors’ answer schemes. The highest percentage of similarities will be chosen for the mark. A test has been carried out to compare marks given by the software with the marks given manually by the instructor. The result is 95% of the marks given by the software are similar to the marks given by the instructor. From this research, programming instructor could assess their students’ programming answer automatically in a faster and more efficient manner.

1. The screenshot of the online tool;

Try @ http://khirulnizam.com/autoassess/

Automated Assessment of Basic C Programming using Pseudo-Code Comparison Technique - Online tool

Automated Assessment of Basic C Programming using Pseudo-Code Comparison Technique - Online tool

2. The sourcedoce;

Samsung Galaxy Tab 10.1 Firmware Update (Official)

To know whether the update is available or not, please go to Settings –> About Phone –> Update

Through this installation process, I’m using DDMS to capture the screenshots. Anyway, not all of the time the tablet connected to DDMS, so I also need a camera (am using my Samsung Galaxy S to capture screenshots).

Downloading upgrade files.

SC20120204-153221

Finish download, and install upgrade.

Sending arguments into Java native application

THE PROBLEM: Write a program that will read an input file mentioned in your command line, and display several lines of text from the input file.

THE SAMPLE OUTPUT:

image

In this tutorial we need simple code editor (Notepad++) and JDK (Java Development Kits). If you’re using Mac, JDK is already available inside (read more for Mac user).

Iklan Pertandingan Kemahiran Malaysia (PKM) 2012

 

skillmalaysia

Kepada pelajar-pelajar IPTA / IPTS/Pusat Latihan Kemahiran / etc bawah 20 tahun jangan lepaskan peluang untuk memenangi sehingga RM5000.00 wang tunai (pingat emas) dalam Perandingan Kemahiran Malaysia 2012. Manakala untuk pingat perak (RM2500) dan gangsa pula (RM1500).

Antara kategori yang dipertandingkan adalah IT Software Solutions, IT Systems Network, Web Design dan Graphic Design untuk bidang kemahiran Teknologi Maklumat.

Web Design – adalah kategori merekabentuk dan membangun laman web. Ia memberi peluang kepada anda menggunakan beberapa perisian pembangunan laman web dan rekabentk grafik untuk menyiapkan laman web yang cantik dan menarik. Disamping itu anda juga perlu mempunyai kemahiran pengaturcaraan sebelah-pelayan (server-site scripting) untuk menggabungkan elemen pangkalan data dalam laman web tersebut.

IT Software Solutions – merupakan kategori yang menguji kemahiran anda dalam penggunaan aplikasi asas perkomputeran seperti pemprosesan perkataan, lembaran kerja dan perisian pembentangan.

IT Systems Network – memerlukan anda mahir dalam bidang pemasangan perkakasan komputer, menginstall perisian terlibat dan menyelenggara rangkaian.

Graphic Design – anda akan ditugaskan untuk menghasilkan pakej grafik, seperti bungkusan produk, untuk anda memperlihatkan kemahiran merekabentuk grafik kreatif.

Setiap kategori mengandungi dua peringkat; saringan dan peringkat akhir. Untuk sampai peringkat akhir, para peserta perlu memasuki saringan yang akan diumumkan kelak.

Tidak perlu bayar apa-apa, cuma gunakan kemahiran anda untuk menang dan berpeluang untuk mewakili Malaysia di peringkat dunia.

Tarikh tutup penyertaan pada 30 Januari 2012. Sila daftar di http://daftar.skillsmalaysia.gov.my/regman/events/32/registration

Untuk maklumat lanjut, sila layari:

http://www.skillsmalaysia.gov.my/index.php?option=com_content&view=article&id=207:iklan-dan-pendaftaran-pertandingan-kemahiran-malaysia-pkm-dan-myskills-2012-&catid=41:latest1

Calculating word frequency

This is a simple application to calculate word frequency in a MultiByte String. MultiByte String relates to Unicode representation of String (used in Jawi or Arabic).

calculate word frequency in a MultiByte String

The PHP code;


<html>
<head>
<title>Maklumat tulisan Arab</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

<script type="text/javascript" src="keyboard.js" charset="UTF-8"></script>
<link rel="stylesheet" type="text/css" href="keyboard.css">
<script type="text/javascript">

var currentFocussedElement = null;

function enterLetter(sender)
{
if(currentFocussedElement)
currentFocussedElement.value += sender.innerHTML;
}

</script>
</head>
<body>


<form action="index.php" method="post">

<input type="text" name="fname" size="50" tabindex="1" onFocus="currentFocussedElement = this" class="keyboardInput"/>
<input type="submit" />
</form>

<hr>

<?php $text = $_POST["fname"];

if ($text!=NULL){
//$words = str_word_count($text, 1); // use this function if you only want ASCII
$words = utf8_str_word_count($text, 1); // use this function if you care about i18n

$frequency = array_count_values($words);

?>
<table border=1>
<tr> <td>perkataan </td><td>frekuensi </td></tr>
<?php
while ($eachword = current($frequency)) {
echo "<tr> <td>".key($frequency)." </td><td>". $eachword." </td></tr>";
//echo key($frequency);

next($frequency);
}


?>
</table>
<?php
}//end if NULL
?>

<?php
//tokenizer function
function utf8_str_word_count($string, $format = 0, $charlist = null)
{
$result = array();

if (preg_match_all('~[\p{L}\p{Mn}\p{Pd}\'\x{2019}' . preg_quote($charlist, '~') . ']+~u', $string, $result) > 0)
{
if (array_key_exists(0, $result) === true)
{
$result = $result[0];
}
}

if ($format == 0)
{
$result = count($result);

}

return $result;
}
?>