Website/src/teaching/cse-350/2024sp/assignments/p0.md

1.8 KiB

P0 - Setup

Deadline: Sunday, Jan 28

Accept Assignment: https://classroom.github.com/a/NwaGafIS

Submit Assignment: https://autolab.cse.buffalo.edu/courses/cse410-s24/assessments/P0-Setup

In this assignment, we will implement binary search using O(1) memory using file handles.

This assignment is intended to:

  • Ensure that you have a viable build environment
  • Familiarize you with the Cargo build process
  • Ensure that you are able to submit
  • Record an association between your Github username and UBIT for later assignments

You should expect to spend approximately 10-60 minutes on this assignment. Plan accordingly.


To complete this assignment, you should:

  1. Accept this assignment through GitHub Classroom.
  2. Modify the file src/main.rs, setting your UBIT and Github username
  3. cargo run
  4. Commit handin.json to your repository and push it.
  5. Upload handin.json to Autolab,

You may repeat steps 2-5 as many times as desired


Overview

In this assignment you will set up your rust development environment. You will not need to write any code for this assignment.


Documentation

You may find the following documentation useful:


Objectives

In this assignment, you must set two build-time constants in src/main.rs

  • UBIT_NAME: This should be your UBIT username (your email address without the @buffalo.edu)
  • GITHUB_USERNAME: This should be your Github username.

Running the code with cargo run will generate a file handin.json. You should:

  1. Commit the file handin.json to your repository
  2. Push the commit to Github
  3. Submit the file handin.json through Autolab.