changed fuel efficiency to percentage

This commit is contained in:
Jay Robson 2024-01-17 12:57:27 +11:00
parent 2e67813f48
commit d1800fa5f2
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ fuel_rod::fuel_rod(double fuel, double mass) : s(fuel, mass)
void fuel_rod::display(std::ostream& o) const void fuel_rod::display(std::ostream& o) const
{ {
o << "Fuel: " << s.get_fuel() << " / " << s.get_mass() << " mol\n"; o << "Fuel: " << s.get_fuel() << " / " << s.get_mass() << " mol\n";
o << "Efficiency: " << s.get_efficiency() << "\n"; o << "Efficiency: " << (s.get_efficiency() * 100) << " %\n";
o << "Energy: +" << s.get_energy() << " C\n"; o << "Energy: +" << s.get_energy() << " C\n";
} }