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 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
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 then we can add a row of two dots to make the triangle bigger, so is a triangular number. We can add another three dots to make the triangle bigger still, so 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 is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
