Skip to content

chore: devfoma week 2 assignment submission#53

Open
devfoma wants to merge 1 commit intothebuidl-grid:mainfrom
devfoma:week-1-assignment-devfoma
Open

chore: devfoma week 2 assignment submission#53
devfoma wants to merge 1 commit intothebuidl-grid:mainfrom
devfoma:week-1-assignment-devfoma

Conversation

@devfoma
Copy link
Contributor

@devfoma devfoma commented Oct 30, 2025

PR Title

chore: Week 2 Rust Fundamentals Assignment

Description

This pull request includes the completed implementation for Week 2: Rust Fundamentals, covering functions, control flow, loops, and enums.

Each task was developed as a separate module (task_1.rs, task_2.rs, and task_3.rs) and integrated into main.rs to demonstrate modular Rust design.

Key Features Implemented:

  • Function to calculate Bitcoin value in USD.
  • Loop-based mining simulation with checkpoints using while and if control structures.
  • Enum and pattern matching to return RPC URLs for different Bitcoin networks.
  • Modular file organization using mod and pub for clean and maintainable code structure.

Project Structure

src/
├── main.rs
├── task_1.rs
├── task_2.rs
└── task_3.rs

Testing and Output

All modules were tested through the main function to verify functionality and correct outputs.

📸 Implementation Screenshot:
image

Summary

This submission demonstrates understanding of Rust’s foundational syntax, modular design, and control structures while applying them to Bitcoin-related logic. The exercises improved debugging, problem-solving, and modular project organization skills in Rust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant