Rust Taskbook Level 6.8

Задание 1

Determine whether today is a weekend or a weekday. Output the result to the console.

Задание 2

Ask the user to enter a year. Get a vector of dates of all Fridays 13th in the entered year.

Задание 3

Given a string of words, sort the words in alphabetical order.

Задание 4

Given two tuples with dates:

rustlet tpl1 = (2025, 11, 29);
let tpl2 = (2027, 12, 31);

Find the difference in days between these dates.

Задание 5

Given a line with a date:

rust"2025-2-1"

Write code that will add zeros to the month and day if necessary:

rust"2025-02-01"
Задание 6

Write a program that will generate the following string:

rust"-1-22-333-444-55555-"