Skip to content

About

Just my good ol' Average Calculator, but now in Rust!

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Average Calculator Rust

Overview

Average Calculator is a simple Rust program designed to calculate the average, weighed average, standard deviation, highest and lowest values of a set of user-inputed floating point numbers.

Features

Calculations:

  • Average
  • Weighed Average
  • Standard Deviation

Data aquisition:

  • [] Highest value
  • [] Lowest value
  • Get all inputed values
  • Get all inputed weights
  • Get number of inputs
  • [] Read values from file
  • [] Read weights from file

Installing and Running

Running on Linux/MacOS

Running on Windows

Why

Just an overkill way of implementing a simple calculator for an Introduction to Computer Science class.

Usage

Command Description
set Requests input for values
stw Requests input for weights
sps Requests input for sample size
rsv Resets values to zero
rsw Resets weights to zero
rsa Resets values and weights to zero
rvf Requests input for file name and reads values from file
rwf Requests input for file name and reads weights from file
shs Prints the current value for the sample size
shv Prints all current inputed values
shw Prints all current weights
sha Executes shs, shv and shw
avg Calculates and prints the average of inputed values
wav Calculates and prints the weighted average of inputed values
std Calculates and prints the standard deviation of inputed values
bvl Prints biggest value of inputed values
svl Prints smallest value of inputed values
hid Hides no inputed values/weights message
rsc Clears the screen and prints the 'main menu'
h Shows this command list
q Terminates the program

Developed by Raphael Zoega and Ian Freitas.

About

Just my good ol' Average Calculator, but now in Rust!

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages