- Displays your first and last name
- Displays the result of the sum of two numbers
- a. Display a message based on the value of a boolean variable
- b. Display ">5", "<5", or "=5" based on the value of a variable
- a. Display "it's true" or "it's false" based on the value of a variable
- b. Display "one", "two", "three", or "other" based on whether the value of a variable is 1, 2, 3, or some other number, respectively
- Display "1" through "4" in the terminal
- Counts down from 5 to 1, displays the countdown in the terminal, then prints "done!" when complete.
- Prints the name of a color to the terminal
- Print the flavor of a drink and it's fluid ounces
- Print whether the y-value of a cartesian coordinate is greater than 5, less than 5, or equal to 5
- Print "its big" if a variable is > 100
- Print "its small" if a variable is <= 100
- Print out the quantity and id number of a grocery item
- Print the characteristics of a shipping box Must include dimensions, weight, and color
- Print 10, 20, "thirty", and 40 in a loop Print the total number of elements in a vector
- Print out the name and favorite colors of people aged 10 and under
- Print out a list of tickets and their information for an event
- Tickets can be Backstage, Vip, and Standard
- Backstage and Vip tickets include the ticket holder's name
- All tickets include the price
- Print out the details of a student's locker assignment
- Lockers use numbers and are optional for students
- Print a string in lowercase and uppercase
- a.
- Determine if a customer is able to make a restricted purchase
- Restricted purchases require that the age of the customer is at least 21
- b.
- Determine if an employee can access a building using a digital keycard
- Employees that can access the building are:
- Maintenance crews
- Marketing department employees
- Managers
- Other employees that work at the company are:
- Line supervisors
- Kitchen staff
- Assembly technicians
- Ensure that terminated employees cannot access the building regardless of their position
- Print the name and number of items in stock for a furniture store
- If the number of items is 0, print "out of stock" instead of 0
- The store has:
- 5 Chairs
- 3 Beds
- 2 Tables
- 0 Couches
- Print the total number of items in stock
- Verify user input against pre-defined keywords
- The keywords represent possible power options for a computer:
- Off
- Sleep
- Reboot
- Shutdown
- Hibernate
- If the user enters one of the keywords, a message should be printed to the console indicating which action will be taken
- Example: If the user types in "shutdown" a message should display such as "shutting down"
- If the keyword entered does not exist, an appropriate error message should be displayed
- Given a user name, create and print out a User struct if the user exists
- Write tests for the existing program to ensure proper functionality
- Use combinators as described in the functions: part_1, part_2, and part_3
- Triple the value of each item in a vector.
- Filter the data to only include values > 10.
- Print out each element using a for loop.
- Calculate the perimeter of a square and triangle
- The perimeter of a square is the length of any side*4.
- The perimeter of a triangle is a+b+c where each variable represents the length of a side.
- Print out the perimeter of the shapes
- a. External crates
- Display the current date and time
- b. Inline Modules
- The existing program is complete, but all the code exists in a single module. This code can benefit from being organized into multiple modules.
- c. External Modules
- The existing program is complete, but all the code exists in a single module. This code can benefit from being organized into multiple external modules.
- Create a function that accepts the Priority trait as a generic parameter
- The function should print out the guest and their priority
- Use the function with at least two different guests
- Create a command line bills/expenses manager that runs interactively. This mini project brings together many of the concepts learn thus far into a single application.
- The user stories/requirements are split into stages. Fully implement each stage as a complete working program before making changes for the next stage. Leverage the compiler by using
cargo check --bin p1
when changing between stages to help identify adjustments that need to be made.