project 06.py - Course CS101 File <name of your file> Project 06 Author Description <What does your project/program do?> Instructions This project

project 06.py - Course CS101 File <name of your file>...

This preview shows page 1 - 2 out of 2 pages.

""" Course: CS101 File: <name of your file> Project: 06 Author: Description: <What does your project/program do?> """ """ Instructions: - This project contains a small program that will calculate areas and perimeters of different shapes. - There is code in the main section of the project that you can NOT edit. - Your task is to create and implement the missing functions that the code in main calls. - you must use math to calculate these values. - Your goal is to match the sample output below. Note, don't forget to replace the TODO comments with function descriptions. Output: Welcome to project 06 - Calculate Areas and Perimeters ====================================================== Circle : area = 39.82, perimeter = 22.37 Square : area = 85.19, perimeter = 36.92 Rectangle: area = 41.24, perimeter = 34.24 Triangle : area = 21.16 """ import math # Add your code here # TODO -> Add welcome function here def displayWelcome(): welcome = input("Welcome to project 06 - Calculate Areas and Perimeters") line = input("======================================================") # TODO -> Add circle area function here def calcAreaCircle(radius): return((radius * radius) * math.pi) # TODO -> Add circle perimeter function here
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Spring '18

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes