feat: completed solutions

This commit is contained in:
2026-03-23 03:36:33 -04:00
parent 2279bea6f1
commit f568c094cb
65 changed files with 424 additions and 139 deletions
+4 -3
View File
@@ -10,16 +10,17 @@
//
// Make the necessary code changes in the struct `ReportCard` and the impl
// block to support alphabetical report cards in addition to numerical ones.
use std::fmt::Display;
// TODO: Adjust the struct as described above.
struct ReportCard {
grade: f32,
struct ReportCard<G: Display> {
grade: G,
student_name: String,
student_age: u8,
}
// TODO: Adjust the impl block as described above.
impl ReportCard {
impl<G: Display> ReportCard<G> {
fn print(&self) -> String {
format!(
"{} ({}) - achieved a grade of {}",