37 of 100 menu

C++ Taskbook Level 4.7

Given an array of integers:

int arr = [123, 456, 789];

Check that it contains a number that contains the digit 3.

Given an array of strings containing integers as strings:

std::string arr[] = ["1", "2", "3", "4", "5"];

Find the sum of the elements of this array.

Given a string:

"AbCdE"

Change the case of the letters in this line to the opposite. In our case, it should look like this:

"aBcDe"

Write a program that will generate the following string:

"-1-2-3-4-5-"

The date is given in the following format:

std::string date = "31-12-2025";

Convert it to the following format:

std::string date = "31 December 2025";
enru