reset password
Author Message
jpascua
Posts: 197
Posted 21:54 Oct 06, 2012 |

The problem is: "2.1.(Validating triangles) Write an application that reads three nonzero values entered by the user and determine and prints whether they could represent the edges of a triangle. The three values are valid if the sum of any two edges is greater than the third edge. Your class name should be IsTriangle."

If user inputs a nonzero value (or less than zero), is the program supposed to tell the user that their input is invalid? Thanks.

Last edited by jpascua at 21:55 Oct 06, 2012.
hpguo
Posts: 139
Posted 12:02 Oct 07, 2012 |

No.

jpascua
Posts: 197
Posted 14:17 Oct 07, 2012 |

So it's fine if the user's able to input a negative or 0 number?

hpguo
Posts: 139
Posted 09:08 Oct 08, 2012 |

Just assume that the user always type non-negative numbers.

kevinTnt
Posts: 28
Posted 21:57 Oct 08, 2012 |

so what is isupposed to output ?

kevinTnt
Posts: 28
Posted 21:58 Oct 08, 2012 |

* is it