Trilogy sanoo: Write a program, that asks two strings from user and compares are they anagrams (different word/sentence with same characters and identical amount of them). You can check this by comparing first string to second, one character at a time. If similar character is found from first string, remove it from second string and process another character in the first string. When all characters from first Trilogy sanoo: Create an array, where first names of at most ten students are stored into. Create another array, where student grades are stored (0-100). Use loop when asking names and grades from user. Calculate grade average using loop, print the average and finally print all names and grades. Trilogy sanoo: Your friend must store three humidity percentages per day ( morning, noon, and evening), from monday to friday. Write a program, that enables him to store these figures in chronological order into 5 x 3 array with float type. After inputting values, program must calculate average for each daytime of the week (average of all morning values, average of all noon values, average of all evening value Trilogy sanoo: Change our answer in assignment 2. Make program use dynamic memory to store student information. This removes limitation for strictly ten students and does not waste memory if there are less than ten students. Ask number of students from user. Remember to delete reserved memory properly afterwards (delete or delete [] )! Trilogy sanoo: Consider following code segment. * is the "pointed-data-of-pointer" operator, & is "memory-address-of" operator. int array[] = { 0,1,2,3,4,5 }; int *ptr = &array[0]; int val = 5; int *ptr2 = &val; cout << ptr << endl; cout << val << endl; cout << *ptr2 << endl; cout << *ptr << endl; cout << *(ptr+2) << endl; *ptr2 = *(ptr+3); ptr2 = (ptr+5); Trilogy sanoo: What does the program print? Where does ptr, and ptr2 point to at the end and what is value of "val" after execution? Describe what happens on each line. Trilogy sanoo: A two-dimensional array is actually an 'array of arrays'. Arrays can be created dynamically using pointers. It is also possible to create two-dimensional array by using 'a pointer to a pointer'. Create 4 x 4 two-dimensional integer array. Here's a helpful hint: int** ppIntArray; ppIntArray = new int*[4]; Trilogy sanoo: This yields an array of pointers to integers. These pointers can be accessed using ppIntArray[0], ppIntArray[1] and so forth. Into each of these pointers, insert a pointer to an integer array of four elements (allocated dynamically) and you are ready. Remember to release memory properly when you are done! Ask yourself a question: is deleting ppIntArray enough? Trilogy sanoo: 6 tehtävää tossa, eli noissa kahdessa viimeisessä on 2 viestissä yhden tehtävän sisältö