C++ Taskbook Level 6.10

Задание 1

Ask the user to enter two dates in the format year-month-day. Determine how many days there are between the entered dates.

Задание 2

Fill the array with random numbers from 1 to 100.

Задание 3

Output all dates of the current month to the console in the format year-month-day. Mark weekdays and weekends, as well as the current day.

Задание 4

Write a program that will generate the following string:

cpp"12 34 56 78"
Задание 5

Write a program that will generate the following string:

java"1+2-3+4-5+6-7+8"
Задание 6

Given an array of numbers:

cpp{1, 2, 3, 3, 4, 5}

Check that this array contains two identical elements in a row.