#4, S = 849 x c Computer Science quest X Grades MATH-2090-00 x y G Dillon Ketron
ID: 3790839 • Letter: #
Question
#4, S = 849
x c Computer Science quest X Grades MATH-2090-00 x y G Dillon Ketron Spring x MasteringBiology: Cours x G all subreddits 20 C https://cloud sage math.com/proje Apps Favorites F First Bank and Trust C O credit cards, Banking R Download music, mo /b/-Random 4chan /mu/ Music 4chan rted Mike Love Permane Other bookmarks Projects Sprin... x bout l Help 68ms Files New Log QFind Settings m 2-GettingstartedwithPython... O C A A E Time Travel Publish About Refresh Save 9 Jupyter 2-GettingstartedwithPython File Edit View Insert Cell Kennel Widgets Help |Anaconda (Python 3) o In L 4. (0.75 points) Write a loop for estimating VS by using the sequence and the initial value xo S/2. Apply to S EnumberLast3NonzeroDigits. Check your work by squaring the result In In 5. (0.75 points) Let a and b be the last two NONZERO digits in your enumber with a s b (a no larger than b). Write a loop for estimating VS by using the sequence 2bun Sa 3axa and the initial values xo S/2. Apply to S EnumberLast3NonzeroDigits. Check your work by squaring the result ES Ask me anything 2/11/2017 412Explanation / Answer
# Python Program to find the area of triangle
a = 5
b = 6
c = 7
# Uncomment below to take inputs from the user
# a = float(input('Enter first side: '))
# b = float(input('Enter second side: '))
# c = float(input('Enter third side: '))
# calculate the semi-perimeter
s = (a + b + c) / 2
# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.