Open main menu

CDOT Wiki β

Changes

OPS435 Assignment 1 for Section C

159 bytes added, 13:55, 3 February 2021
The First Milestone (due February 14)
In order to complete <code>percent_to_graph()</code>, it's helpful to know the equation for converting a number from one scale to another.
 
<img src="https://chart.googleapis.com/chart?cht=tx&chl=\frac{y~out~%20-%20y~min~}{y~max~%20-%20y~min~}%20=%20\frac{x~in~%20-%20x~min~}{x~max%20-%20x~min~}">
(''y''<sub>out</sub> - ''y''<sub>min</sub>) / (''y''<sub>max</sub> - ''y''<sub>min</sub>) = (''x''<sub>in</sub> - ''x''<sub>min</sub>) / (''x''<sub>max</sub> - ''x''<sub>min</sub>)