/// determine average quality of a qual cigar string
determine average quality of a qual cigar string
determine average quality of a qual cigar string
fn avg_quality(qual: &String) -> f32 {
    let mut total :u32 = 0;
    for qual_char in qual.chars() {
        total += qual_char as u8 as u32;
    }
    let avg = (total as f32 / qual.len() as f32) - 33.0;
    return avg;
}
fn avg_quality ( qual : & String ) -> f32 { let mut total : u32 = 0 ; for qual_char in qual . chars ( ) { total += qual_char as u8 as u32 ; } let avg = ( total as f32 / qual . len ( ) as f32 ) - 33.0 ; return avg ; }
determine average quality of a qual cigar string
determine average quality of a qual cigar string
qual
&String