- 1

Can you solve this in Java

Consider the equation p= sinx + cosy+ tanz , Create 3 threads with each one computing sinx, cosy, tanz . Obtain the sum of 3 terms and display.

22nd Apr 2022, 10:07 AM
Rishita Singh
4 Answers
+ 4
Yes, one can solve this in Java. If you need help, please LINK your code. Sololearn is a self-learning platform, not a code writing service.
22nd Apr 2022, 10:11 AM
Lisa
Lisa - avatar
+ 4
You have a link to your code if you have attempted to write one. Go to Code section, click +, select the programming language, insert your code, save. Come back to this thread, click +, Insert Code, sort for My Code Bits, select your code.
22nd Apr 2022, 10:15 AM
Lisa
Lisa - avatar
0
It's a question from my textbook , i don't have a link .
22nd Apr 2022, 10:13 AM
Rishita Singh
0
You have first to understand threads. Java lesson about threads in sololearn app explains it well. If you create one thread that calculates one of them for example sinx, then it is easy to solve your problem by calculating the others (cosy, tanz) in the same way.
22nd Apr 2022, 1:01 PM
Black Winter