473,499 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can you answer please as soon as possible

12 New Member
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
0 849

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

Similar topics

28
3252
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
14
3082
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
16
3035
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through...
4
1455
by: Corey Dyke | last post by:
K here's what happened. For my English project at DeVry, I had to design a website for a company of my choice. So since my dad has been after me for years to do one for him, I decided to finally...
2
1627
by: Bill Yin | last post by:
Please tell me where can download <Beginning C# web Applications with Visual studio .net> 's code Thanks in advance!
2
1081
by: MAT | last post by:
Hi... I am new in .NET and C#. I have such a problem: I connect to the SQL Server over Web Services and send a request. Another user must see this command (my request) and do somtehing and send...
2
1669
by: sujithvaddi | last post by:
Hello sir/madam, This is Sujith. I am working on an online form with user authentication page using ASP and using MS access database. So i am done and everything is ok when I am doing on my...
4
2684
by: king1986 | last post by:
hello everybody, I'm a new member here, and I'm happy to be with you. Please I'm a student and I need to finish my project as soon as possible, but I have a problem. Actually, my project is to do...
1
1138
by: MasterMind | last post by:
Please Help me as soon as possible. I do work on threads in C#. I stuck in a problem. The problem is... I want to generate message on the some specific time e.g I want to generate a message...
5
1649
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hello, I am in serious need of help. I have an ASP.NET application written in C#. I have a page that processes a file on the web server. The page uses a class I created and stored in the AppCode...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.