16:26
LTE
Exit
• Must prompt me for the input data
• Must answer the questions below
• Must use a function that you write
• Must use a loop
You are going to prepare a solution to answer the
problem below. Yes, this is similar to the problem that
you did with Excel so you should already have the
concept worked out.
First step is to prompt me for inputing the three sides,
one side at a time (20 Points)
Second step is to answer these questions using the
data I typed in:
1. Do the 3 sides form a triangle? (20 Points)
• If so, state that it does form a
triangle and answer the other three questions
• If not, state that it does not form a triangle and
either end the program OR tell me that the
perimeter, area, and side lengths do not apply
2. The perimeter of the triangle. You must create a
function called LNXXX_Perimeter and call it from
your program. LN is the first five letters of your last
name similar to the assignment naming convention.
? (20 Points)
3. The area of the triangle. You may answer this in the
main program. You do not need to use a function
here. (20 Points)
4. Whether or not all triangle side lengths are
integer. You must use a loop (your choice) but the
loop must be used to check each side, one at a time,
to determine if the side is an integer or not. (20
Points)