Question: Write code in C++ to display the side lengths and area of 10 random triangles with each side having integer length between 1 and 100
Lab 4- Heron's Formula Create a new Code::Blocks C++/14 console application called herons-formula in a new 1ab4 subfolder you wi create under ~/Desktop/scicomp301/sessione7 . Calculate and display the side lengths and area of 10 random triangles, with each side having an integer length between 1 and 100 inclusive . Use a uniform probability distribution with 2016 as the PRNG seed of 3 random sides) which do not yield a valid triangle. Your program should still consider a degenerate triangle having zero area as a valid triangle. 35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
