First Problem:
#include <iostream>
#include <vector>
#include <algorithm>
int main(int argc, char* argv[]) {
//Dynamic array
std::vector<char> grade {'A','C','B','A','A','D','C','A','B','E'};
//Find how much A in the list.
std::cout << "Quantity of A: " << std::count(grade.begin(), grade.end(), 'A');
return 0;
}
Second Problem:
#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
int main(int argc, char* argv[]) {
//Dynamic array
std::vector<int> num {10,2,55,3,4,8,14,9,20,1};
//Find the necessary things.
std::cout << "Total is: " << std::reduce(num.begin(), num.end())
<< "\\Highest number is: " << *std::max_element(num.begin(), num.end());
return 0;
}