<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KOMA.si, stari ... &#187; awk</title>
	<atom:link href="http://www.koma.si/tag/awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.koma.si</link>
	<description>... pa kak&#039; te tega ne razumeš?</description>
	<lastBuildDate>Mon, 08 Aug 2011 00:40:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>SA: N11: Povprečne ocene z AWK</title>
		<link>http://www.koma.si/2010/04/sa-n11-povprecne-ocene-z-awk/</link>
		<comments>http://www.koma.si/2010/04/sa-n11-povprecne-ocene-z-awk/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 12:20:30 +0000</pubDate>
		<dc:creator>Ali Gator</dc:creator>
				<category><![CDATA[SA]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.koma.si/?p=473</guid>
		<description><![CDATA[<h3>Navodilo:</h3>
Datoteka <em>ocene.txt </em>vsebuje rezultate šestih vmesnih izpitov študentov drugega letnika računalništva. Vsebina omenjene datoteke je naslednja:

<em>$ </em><em><strong>cat ocene.txt</strong></em>

<em>mona 70 77 85 83 70 89</em>

<em>john 85 92 78 94 88 91</em>

<em>andrea 89 90 85 94 90 95</em>

<em>jasper 84 88 80 92 84 82</em>

<em>dunce 64 80 60 60 61 62</em>

<em>ellis 90 98 89 96 96 92</em>

Izpišite povprečne ocene študentov in doseženo oceno. Pri ocenjevanju študentov upoštevajte ocenjevalno lestvico prikazano v tabeli 1. Izpišite tudi povprečno oceno vseh študentov letnika in ugotovite, koliko študentov je nad povprečjem in koliko pod njim. Nalogo poskušajte rešiti v enem samem zagonu skripta <em>awk</em>. (<strong>Namig</strong>: uporabite podatkovno strukturo <em>polje</em> ter pravili <em>BEGIN</em> in <em>END</em>).

Tabela 1: Ocenjevalna lestvica

<dl><dd>
<table border="1" cellspacing="1" cellpadding="4" width="366" bordercolor="#000001"><col width="184"></col><col width="161"></col>
<tbody>
<tr valign="TOP">
<td width="184">Točke</td>
<td width="161">Ocena</td>
</tr>
<tr valign="TOP">
<td width="184">90-100</td>
<td width="161">10</td>
</tr>
<tr valign="TOP">
<td width="184">80-89</td>
<td width="161">9</td>
</tr>
<tr valign="TOP">
<td width="184">70-79</td>
<td width="161">8</td>
</tr>
<tr valign="TOP">
<td width="184">60-69</td>
<td width="161">7</td>
</tr>
<tr valign="TOP">
<td width="184">50-59</td>
<td width="161">6</td>
</tr>
<tr valign="TOP">
<td width="184">&#60; 50</td>
<td width="161">5</td>
</tr>
</tbody>
</table>
</dd></dl>]]></description>
		<wfw:commentRss>http://www.koma.si/2010/04/sa-n11-povprecne-ocene-z-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SA: N09: Povprečne ocene</title>
		<link>http://www.koma.si/2010/04/san09povprecne-ocene/</link>
		<comments>http://www.koma.si/2010/04/san09povprecne-ocene/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 11:32:09 +0000</pubDate>
		<dc:creator>Ali Gator</dc:creator>
				<category><![CDATA[SA]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.koma.si/?p=467</guid>
		<description><![CDATA[<h3>Navodilo:</h3>
Datoteka <em>ocene.txt </em>vsebuje rezultate šestih vmesnih izpitov študentov drugega letnika računalništva. Vsebina omenjene datoteke je naslednja:

<em>$ </em><em><strong>cat ocene.txt</strong></em>

<em><strong> </strong>mona 70 77 85 83 70 89</em>

<em>john 85 92 78 94 88 91</em>

<em>andrea 89 90 85 94 90 95</em>

<em>jasper 84 88 80 92 84 82</em>

<em>dunce 64 80 60 60 61 62</em>

<em>ellis 90 98 89 96 96 92</em>

Izpišite povprečne ocene študentov in doseženo oceno. Pri ocenjevanju študentov upoštevajte ocenjevalno lestvico prikazano v tabeli 1. Izpišite tudi povprečno oceno vseh študentov letnika.

Tabela 1: Ocenjevalna lestvica

<dl> <dd>
<table border="1" cellspacing="0" cellpadding="4" bordercolor="#000000"><col width="136*"></col> <col width="120*"></col>
<tbody>
<tr valign="TOP">
<td width="53%">Točke</td>
<td width="47%">Ocena</td>
</tr>
<tr valign="TOP">
<td width="53%">90-100</td>
<td width="47%">10</td>
</tr>
<tr valign="TOP">
<td width="53%">80-89</td>
<td width="47%">9</td>
</tr>
<tr valign="TOP">
<td width="53%">70-79</td>
<td width="47%">8</td>
</tr>
<tr valign="TOP">
<td width="53%">60-69</td>
<td width="47%">7</td>
</tr>
<tr valign="TOP">
<td width="53%">50-59</td>
<td width="47%">6</td>
</tr>
<tr valign="TOP">
<td width="53%">&#60; 50</td>
<td width="47%">5</td>
</tr>
</tbody>
</table>
</dd> </dl>]]></description>
		<wfw:commentRss>http://www.koma.si/2010/04/san09povprecne-ocene/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SA: 1. Kolokvij &#8211; aka WTF?</title>
		<link>http://www.koma.si/2010/03/sa-1-kolokvij-aka-wtf/</link>
		<comments>http://www.koma.si/2010/03/sa-1-kolokvij-aka-wtf/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 16:29:49 +0000</pubDate>
		<dc:creator>Ali Gator</dc:creator>
				<category><![CDATA[SA]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.koma.si/?p=437</guid>
		<description><![CDATA[Se bliža kolokvij Sistemske administracije in ne veste kaj bo v njem? Mogoče lahko mi pomagamo - v nadaljevanju boste našli primer prvega kolokvija SA.]]></description>
		<wfw:commentRss>http://www.koma.si/2010/03/sa-1-kolokvij-aka-wtf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

