Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Assignment Overview

You will be implementing next_number in collatz.rs, and optionally is_leap_year in leap_year.rs.

Running the Programs

To run the leap year program, run cargo run --bin leap_year. To run the collatz program, run cargo run --bin collatz.

Submitting Your Code

Before submitting your code, make sure to:

  • Run cargo clippy and fix any warnings that appear.
  • Run cargo fmt to format your code according to the Rust style guidelines.
  • Commit and push your code to your repository.

Then, submit your code to the Gradescope assignment.