Question: Week 1 4 Lab For this assignment, there is a list with a bunch of words in it . Your goal is to find the

Week 14 Lab
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 n(n+1)2.
Week 1 4 Lab For this assignment, there is a list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!