You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
795 B
795 B
Hints
General
1. Calculate the production rate per hour
- Determining the success rate can be done through a conditional statement or with pattern matching.
- As Rust only allows multiplication between values of the same type, some type casting will have to be done.
2. Calculate the number of working items produced per minute
- Just like multiplication, division is only possible between numbers of the same type. By writing a number with a decimal point (e.g.
1.0
instead of1
) we can write inline constants with a floating point type.