What is the total number of cancer deaths in a given state?

Implement a Python program that analyzes the given dataset and answers the given questions.

Dataset:
Website link – https://think.cs.vt.edu/corgis/csv/cancer/
CSV File – https://think.cs.vt.edu/corgis/datasets/csv/cancer/cancer.csv

Answer the following questions:
What is the total number of cancer deaths in a given state?
Does the given state have a higher
rate of deaths in breast cancer, colorectal cancer, or lung cancer?
In general, it is said that the
incidence of cancer is about 20% higher in men than in women; does this hold true in the given
state?

The output should look similar to the following:
Choose a state to look up: Alabama
Total Cancer Deaths: 71529.0
Total Breast Cancer Deaths (Rate per 100,000 Population): 27.4
Total Colorectal Cancer Deaths (Rate per 100,000 Population): 19.4
Total Lung Cancer Deaths (Rate per 100,000 Population): 66.4
Lung cancer has the highest rate of deaths in the state of Alabama.
Total Female Deaths: 1026.7
Total Male Deaths: 1619.0
The incidence of cancer in men is higher in men than in women in the state of Alabama.

Programming guidelines:
1. Are all of your Python files properly commented? (Header comments consisting of your name
and a brief description of the program in that file as well as comments within your code to
clarify the logical structure of your program.)
2. Is your program formatted neatly and consistently? Do you use whitespace (but not too
much) to help a human reader understand the logical organization of your code?
3. Did you clean up your code once you got it to work? It should not contain any code snippets that don’t contribute to the purpose of the program, commented out code from earlier
attempts, or unnecessary comments.
4. Do you use variable and function names that are informative and describe what the variable
stands for or what the function does?
5. Did you re-read and revise your program to make sure that you use all programming constructs
appropriately, that your logic is not unnecessarily complicated, and that all lines contribute
to the behavior of the program.

Last Completed Projects

topic title academic level Writer delivered