SlideShare a Scribd company logo
1 of 1
Download to read offline
Write the following functions: # Fill a rectangle with the specified color, center, width, and height.
def drawRectangle ( color = "black", x=0,y=0, width =30, height =30) : # Fill a circle with the
specified color, center, and radius. def drawCircle ( color = "black", x=0,y=0, radius =50) : Write a
main function that prompt the user for the parameters of function drawRectangel and call the
above two functions.Create a module (library) named MyTriangle that contains the following two
functions: # Returns true if the sum of any two sides is greater than the third side. def
isValid(side1, side 2 , side 3 ): # Returns the area of the triangle. def area(side 1, side 2, side 3) :
Create another program with a main function; the main function reads three sides for a triangle
and computes the area if the input is valid. Otherwise, it displays that the input is invalid. The
formula for computing the area of a triangle is: s=(side1+side2+side3)/2area=s(sside1)(sside2)(s
side3) Note: submit two files, one file for the module and another with a program that has the main
function. You must import MyTriangle module into your program to use both functions.

More Related Content

Similar to Write the following functions Fill a rectangle with the s.pdf

Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docxSwatiMishra364461
 
Explanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expertExplanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expert홍배 김
 
Computer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1bComputer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1bPhilip Schwarz
 
MAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docx
MAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docxMAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docx
MAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docxjessiehampson
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxagnesdcarey33086
 

Similar to Write the following functions Fill a rectangle with the s.pdf (12)

Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
 
Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docx
 
Explanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expertExplanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expert
 
raster algorithm.pdf
raster algorithm.pdfraster algorithm.pdf
raster algorithm.pdf
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Programs.doc
Programs.docPrograms.doc
Programs.doc
 
AI-Programs.pdf
AI-Programs.pdfAI-Programs.pdf
AI-Programs.pdf
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Computer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1bComputer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1b
 
MAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docx
MAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docxMAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docx
MAT-121 COLLEGE ALGEBRAWritten Assignment 32 points eac.docx
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
 
MATLABgraphPlotting.pptx
MATLABgraphPlotting.pptxMATLABgraphPlotting.pptx
MATLABgraphPlotting.pptx
 

More from agpcorp

Wrte a function gotPC that accepts three arguments UD and .pdf
Wrte a function gotPC that accepts three arguments UD and .pdfWrte a function gotPC that accepts three arguments UD and .pdf
Wrte a function gotPC that accepts three arguments UD and .pdfagpcorp
 
WRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdf
WRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdfWRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdf
WRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdfagpcorp
 
Write TWO recursive methods One to find the maximum in an a.pdf
Write TWO recursive methods One to find the maximum in an a.pdfWrite TWO recursive methods One to find the maximum in an a.pdf
Write TWO recursive methods One to find the maximum in an a.pdfagpcorp
 
Write the R code to generate the following output by using c.pdf
Write the R code to generate the following output by using c.pdfWrite the R code to generate the following output by using c.pdf
Write the R code to generate the following output by using c.pdfagpcorp
 
Write the name of the structure the phrase describes 1 Blo.pdf
Write the name of the structure the phrase describes 1 Blo.pdfWrite the name of the structure the phrase describes 1 Blo.pdf
Write the name of the structure the phrase describes 1 Blo.pdfagpcorp
 
Write TensorFlow program to create a Binary image classifi.pdf
Write TensorFlow program  to  create a Binary image classifi.pdfWrite TensorFlow program  to  create a Binary image classifi.pdf
Write TensorFlow program to create a Binary image classifi.pdfagpcorp
 
Write python code that calculates the minimum maximum mean.pdf
Write python code that calculates the minimum maximum mean.pdfWrite python code that calculates the minimum maximum mean.pdf
Write python code that calculates the minimum maximum mean.pdfagpcorp
 
Write the Asymptotic Complexity for each line of code Then .pdf
Write the Asymptotic Complexity for each line of code Then .pdfWrite the Asymptotic Complexity for each line of code Then .pdf
Write the Asymptotic Complexity for each line of code Then .pdfagpcorp
 
Write Short answers specific and avoid extra off topic det.pdf
Write Short answers specific and avoid extra off topic det.pdfWrite Short answers specific and avoid extra off topic det.pdf
Write Short answers specific and avoid extra off topic det.pdfagpcorp
 
write report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdfwrite report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdfagpcorp
 
Write the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdfWrite the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdfagpcorp
 
Write program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdfWrite program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdfagpcorp
 
Write the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdfWrite the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdfagpcorp
 
Write the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdfWrite the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdfagpcorp
 
Write node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdfWrite node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdfagpcorp
 
write information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdfwrite information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdfagpcorp
 
Write in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdfWrite in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdfagpcorp
 
Write a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdfWrite a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdfagpcorp
 
Write combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdfWrite combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdfagpcorp
 
Write code for problem 2 please Create a linked list by ent.pdf
Write code for problem 2 please  Create a linked list by ent.pdfWrite code for problem 2 please  Create a linked list by ent.pdf
Write code for problem 2 please Create a linked list by ent.pdfagpcorp
 

More from agpcorp (20)

Wrte a function gotPC that accepts three arguments UD and .pdf
Wrte a function gotPC that accepts three arguments UD and .pdfWrte a function gotPC that accepts three arguments UD and .pdf
Wrte a function gotPC that accepts three arguments UD and .pdf
 
WRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdf
WRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdfWRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdf
WRRK amp MOAILITY AND RALL PREVENTION FOCUS PAIN PAIN 5.pdf
 
Write TWO recursive methods One to find the maximum in an a.pdf
Write TWO recursive methods One to find the maximum in an a.pdfWrite TWO recursive methods One to find the maximum in an a.pdf
Write TWO recursive methods One to find the maximum in an a.pdf
 
Write the R code to generate the following output by using c.pdf
Write the R code to generate the following output by using c.pdfWrite the R code to generate the following output by using c.pdf
Write the R code to generate the following output by using c.pdf
 
Write the name of the structure the phrase describes 1 Blo.pdf
Write the name of the structure the phrase describes 1 Blo.pdfWrite the name of the structure the phrase describes 1 Blo.pdf
Write the name of the structure the phrase describes 1 Blo.pdf
 
Write TensorFlow program to create a Binary image classifi.pdf
Write TensorFlow program  to  create a Binary image classifi.pdfWrite TensorFlow program  to  create a Binary image classifi.pdf
Write TensorFlow program to create a Binary image classifi.pdf
 
Write python code that calculates the minimum maximum mean.pdf
Write python code that calculates the minimum maximum mean.pdfWrite python code that calculates the minimum maximum mean.pdf
Write python code that calculates the minimum maximum mean.pdf
 
Write the Asymptotic Complexity for each line of code Then .pdf
Write the Asymptotic Complexity for each line of code Then .pdfWrite the Asymptotic Complexity for each line of code Then .pdf
Write the Asymptotic Complexity for each line of code Then .pdf
 
Write Short answers specific and avoid extra off topic det.pdf
Write Short answers specific and avoid extra off topic det.pdfWrite Short answers specific and avoid extra off topic det.pdf
Write Short answers specific and avoid extra off topic det.pdf
 
write report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdfwrite report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdf
 
Write the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdfWrite the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdf
 
Write program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdfWrite program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdf
 
Write the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdfWrite the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdf
 
Write the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdfWrite the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdf
 
Write node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdfWrite node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdf
 
write information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdfwrite information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdf
 
Write in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdfWrite in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdf
 
Write a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdfWrite a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdf
 
Write combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdfWrite combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdf
 
Write code for problem 2 please Create a linked list by ent.pdf
Write code for problem 2 please  Create a linked list by ent.pdfWrite code for problem 2 please  Create a linked list by ent.pdf
Write code for problem 2 please Create a linked list by ent.pdf
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Write the following functions Fill a rectangle with the s.pdf

  • 1. Write the following functions: # Fill a rectangle with the specified color, center, width, and height. def drawRectangle ( color = "black", x=0,y=0, width =30, height =30) : # Fill a circle with the specified color, center, and radius. def drawCircle ( color = "black", x=0,y=0, radius =50) : Write a main function that prompt the user for the parameters of function drawRectangel and call the above two functions.Create a module (library) named MyTriangle that contains the following two functions: # Returns true if the sum of any two sides is greater than the third side. def isValid(side1, side 2 , side 3 ): # Returns the area of the triangle. def area(side 1, side 2, side 3) : Create another program with a main function; the main function reads three sides for a triangle and computes the area if the input is valid. Otherwise, it displays that the input is invalid. The formula for computing the area of a triangle is: s=(side1+side2+side3)/2area=s(sside1)(sside2)(s side3) Note: submit two files, one file for the module and another with a program that has the main function. You must import MyTriangle module into your program to use both functions.