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

Assignment Overview

You will be debugging the following methods:

  • rounded_division (fix optional)
  • sum_of_elementwise_maxes and helpers (fix required)
  • product and sum (fix required)
  • add_constant (fix required)
  • set_to_zero_if_max_fel and helpers (fix required)
  • square_primes and helpers (fix required)

Running the Programs

To run each part of the assignment:

  • cargo run --bin debug_exercise_1
  • cargo run --bin debug_exercise_2
  • cargo test arithmetic
  • cargo test int_list

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.