Does anybody know how to solves this using the C++ program? Thanks!
"This question is worth a total of 100 point (This includes brainliest answer)"
50 points for answering
50 points if earned brainliest answer
For this assignment, there is a list with a bunch of words in it. Your goal is to find the value of each word
by adding its letter values together, then determine whether or not the value of that word is a triangular number.
For example, aaron = 1 + 1 + 18 + 15 + 14 = 49
49 is not a triangular number, so you wouldn’t count that one.
Your program should print how many words have a value that’s a triangular number, but don’t just print the number, include a sentence that describes what the number is.
I will use a different word list to grade your program, the formatting will be the same, but the number of words will be different. To make sure your program works right when I grade it, name the file WordList.txt
A number is triangular if it’s the number of dots in a triangle pattern, the first triangular number is 1, then we can add a row of two dots to make the triangle bigger, so 3 is a triangular number. We can add another three dots to make the triangle bigger still, so 6 is a triangular number. We can repeat this process to generate an infinite number of triangle numbers. An equation that generates all triangular
numbers for any natural number n is (+1)/2