By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,192 Members | 816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,192 IT Pros & Developers. It's quick & easy.

can you answer please as soon as possible

P: 12
i' am supposed to write a function that takes as an argument two integers n and b, and returns a value corresponding to the following formula:
(en * ln b) + cos(n) / sin(b)
- Treat the exception when sin(b) = 0 by making the function returning a value of (-99999).
- Call your function from a main program (write a complete program)
- In the main menu do check if the returned value is (-999). If so do display a warning message. Else display the returned value.
- Your program should execute iteratively till a Sentinel value is typed
Nov 5 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.