fn determine_price_tiers(highest: f64, lowest: f64) -> [f64; 10]{
    let mut tiers: [f64; 10] = [0 as f64; 10];
    let difference: f64 = highest - lowest;
    let step: f64 = difference / 10 as f64;

    for i in 0..10{
        tiers[i] = highest - (step * i as f64);
    }

    return tiers;
}
/// Determine Price Tiers
///     Returns an array of f64 that are evenly divided
///     into 10 elements
///
/// Args:
///     highest (f64): the greatest number encountered
///     lowest  (f64): the lowest number encountered
///
/// Returns:
///     [f64; 10]: an array of 10 evenly spaced numbers
///
Determine Price Tiers
Returns an array of f64 that are evenly divided
into 10 elements

highest (f64): the greatest number encountered
lowest  (f64): the lowest number encountered

[f64; 10]: an array of 10 evenly spaced numbers
Determine Price Tiers Returns an array of f64 that are evenly divided into 10 elements highest ( f64 ) : the greatest number encountered lowest ( f64 ) : the lowest number encountered [ f64 ; 10 ] : an array of 10 evenly spaced numbers
fn determine_price_tiers(highest: f64, lowest: f64) -> [f64; 10]{
    let mut tiers: [f64; 10] = [0 as f64; 10];
    let difference: f64 = highest - lowest;
    let step: f64 = difference / 10 as f64;
    for i in 0..10{
        tiers[i] = highest - (step * i as f64);
    }
    return tiers;
}
fn determine_price_tiers ( highest : f64 , lowest : f64 ) -> [ f64 ; 10 ] { let mut tiers : [ f64 ; 10 ] = [ 0 as f64 ; 10 ] ; let difference : f64 = highest - lowest ; let step : f64 = difference / 10 as f64 ; for i in 0 .. 10 { tiers [ i ] = highest - ( step * i as f64 ) ; } return tiers ; }
Determine Price Tiers
Returns an array of f64 that are evenly divided
into 10 elements
Determine Price Tiers Returns an array of f64 that are evenly divided into 10 elements
highest
f64
lowest
f64
highest
f64
lowest
f64