<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<title>Easy Average Grade Calculator </title>
</head>
<body class="rustdoc">
<h1 class="title">Easy Average Grade Calculator </h1>
<nav id="TOC"><ul>
<li><a href="#usage">0.1 Usage</a><ul></ul></li></ul></nav><p>This tool is a easy average grade average calulcator written in Rust. It takes a list of graded to calculated the average and can be used as a library by other applications.</p>
<p><a href="https://www.thebestdegree.com">Thebestdegree.com</a> provided a more complex <a href="https://www.thebestdegree.com/grade-calculator/">grade calulcator</a> for weighted grade calculation for college or high school students and teachers. </p>
<p>These tools are all implemented in Rust.</p>
<h2 id="usage"><a href="#usage">0.1 Usage</a></h2>
<p>The easy grade calulcator can either read the input grades from arguments or a text file as shown below:</p>
<div class="example-wrap"><pre class="language-bash"><code>grade-avg 3.5 2.5</code></pre></div>
<p>Another way to use the tool would be to create a txt file as the input grades. Create a file <code>grades.txt</code> with the contents:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="number">1.5</span>
<span class="number">3.5</span>
<span class="number">2.5</span></code></pre></div>
<p>The average for these grades can be calculcated as below:</p>
<div class="example-wrap"><pre class="language-bash"><code>cat ~/grades.txt | grade-avg</code></pre></div>
</body>
</html>