Skip to main content
12-Amethyst
May 5, 2020
Solved

What is the difference between these two and why one is work and the other one is not

  • May 5, 2020
  • 2 replies
  • 1511 views

r = -1 epsilon y = 60ksi/29000ksi

 

File is attached below, in the final page.

 

Thank you very much!

 

Annotation 2020-05-04 214135-1.pngAnnotation 2020-05-04 214135.png

Best answer by LucMeekes

In your first case epsilon-s is less than epsilon-y, your last else-if catches that. In the second case epsilon-s and epsilon-y are equal, none of your if-cases catches that. You have one situation not accounted for. Prime rightfully complains about that.

 

Success!
Luc

2 replies

24-Ruby IV
May 5, 2020

Return.png

LucMeekes23-Emerald IVAnswer
23-Emerald IV
May 5, 2020

In your first case epsilon-s is less than epsilon-y, your last else-if catches that. In the second case epsilon-s and epsilon-y are equal, none of your if-cases catches that. You have one situation not accounted for. Prime rightfully complains about that.

 

Success!
Luc

yoohooos12-AmethystAuthor
12-Amethyst
May 5, 2020

Thank you!