Print column headings above the for loop that include Edge, Area, Volume, Volume so Far, and message where message is if the edge was even or odd.

Calculate the area and volume of the figure inside a for loop that goes from 1 to 15, along with the other information that matches your column headings. “Volume so far” for row 4 would include the volumes for rows 1-4.
Let the variable ‘a’ be the edge that you control your loop with.
Do not print out row 5 or include row 5 in your calculations.

Print out the total area and total volume at the end of the for loop, which does not include row 5.
Below your totals, enter from the keyboard and print your full name, age, and major. Label your information.
Use a switch statement (or dictionary) to print out which decade you were born in. 18 would be decade 2, 31 would be decade 3, 64 would be decade 6 and so on.
Your switch or dictionary should go 1 through 10.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

heading = "Edge | Area | Volume | Area so Far | Volume so Far | Message"

decades = {
    1: "Decade 1",
    2: "Decade 2",
    3: "Decade 3",
    4: "Decade 4",
    5: "Decade 5",
    6: "Decade 6",
    7: "Decade 7",
    8: "Decade 8",
    9: "Decade 9",
    10: "Decade 10",


volume_sum = 0
area_sum = 0

for a in range(1, 16):

    if a == 5:


    area = (3 ** 0.5) * (a ** 2)...

By purchasing this solution you'll be able to access the following files:

for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Python Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats