473,503 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

programming, in c,

1.)write a function power(a,b), to calculate the value of a raised to

b.
2 .)write a general purpose function to convert any given year into
its roman equivalent.The following table shows the roman equivalents
of decimal integers.
Decimal Roman
1 i
5 v
10 x
50 l
100 c
500 d
1000 m
example : roman equivalent for 1988 is mdcccclxxxviii
roman equivalent of 1525 is mdxxv

jawaab dijiye

Mar 29 '06 #1
9 2601

vinay wrote:
1.)write a function power(a,b), to calculate the value of a raised to b.
#include <math.h>

double power(double a, double b)
{
return pow(a,b);
}
2 .)write a general purpose function to convert any given year into


<snip homework assignment>

The first one you get for free, as a taster. For the other one, we can
arrange direct delivery to your teacher, if you provide us with their
e-mail address, and a cheque for one day's consulting fees, at a rate
to be negotiated.

--
BR, Vladimir

Mar 29 '06 #2
Hi everybody,
do you know how can I find a process-ID, and stop it in C!

Thanks


Vladimir S. Oka schrieb:
vinay wrote:
1.)write a function power(a,b), to calculate the value of a raised to b.


#include <math.h>

double power(double a, double b)
{
return pow(a,b);
}
2 .)write a general purpose function to convert any given year into


<snip homework assignment>

The first one you get for free, as a taster. For the other one, we can
arrange direct delivery to your teacher, if you provide us with their
e-mail address, and a cheque for one day's consulting fees, at a rate
to be negotiated.

--
BR, Vladimir


Mar 29 '06 #3

alergh wrote:

Do not top-post! Do not hijak threads!

Also, read, and heed:

<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

before posting again.
Hi everybody,
do you know how can I find a process-ID, and stop it in C!


Standard ISO/ANSI C knows not of processes. Ask in group discussing
your particular OS.

--
BR, Vladimir

Mar 29 '06 #4
"vinay" writes:
2 .)write a general purpose function to convert any given year into
its roman equivalent.The following table shows the roman equivalents
of decimal integers.
Decimal Roman
1 i
5 v
10 x
50 l
100 c
500 d
1000 m
example : roman equivalent for 1988 is mdcccclxxxviii
roman equivalent of 1525 is mdxxv


Anyone who converted Roman numbers and came up with that first example
would be fed to the lions. That is not a proper Roman number, it is your
instructor's vague notion of what a Roman number is.
Mar 29 '06 #5
osmium wrote:
"vinay" writes:

2 .)write a general purpose function to convert any given year into
its roman equivalent.The following table shows the roman equivalents
of decimal integers.
Decimal Roman
1 i
5 v
10 x
50 l
100 c
500 d
1000 m
example : roman equivalent for 1988 is mdcccclxxxviii
roman equivalent of 1525 is mdxxv

Anyone who converted Roman numbers and came up with that first example
would be fed to the lions.


LOL

.. That is not a proper Roman number, it is your instructor's vague notion of what a Roman number is.


Please explain.

Mar 30 '06 #6
jaysome <ja*****@spamcop.com> writes:
osmium wrote:
"vinay" writes:
2 .)write a general purpose function to convert any given year into
its roman equivalent.The following table shows the roman equivalents
of decimal integers.
Decimal Roman
1 i
5 v
10 x
50 l
100 c
500 d
1000 m
example : roman equivalent for 1988 is mdcccclxxxviii
roman equivalent of 1525 is mdxxv

Anyone who converted Roman numbers and came up with that first
example would be fed to the lions.


LOL

. That is not a proper Roman number, it is your
instructor's vague notion of what a Roman number is.


Please explain.


1988 in Roman numerals is mcmlxxxviii, not mdcccclxxxviii.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Mar 30 '06 #7
Keith Thompson <ks***@mib.org> wrote:
jaysome <ja*****@spamcop.com> writes:
osmium wrote:
"vinay" writes:

example : roman equivalent for 1988 is mdcccclxxxviii
roman equivalent of 1525 is mdxxv
Anyone who converted Roman numbers and came up with that first
example would be fed to the lions.
. That is not a proper Roman number, it is your
instructor's vague notion of what a Roman number is.


Please explain.


1988 in Roman numerals is mcmlxxxviii, not mdcccclxxxviii.


QVOQVE CREDO ROMANI NON IAM HABENT LITTERAE CAROLINGIAE

VVLGO 1988 LATINE MCMLXXXVIII EST

Richard
Mar 30 '06 #8
In message <VI*************@fe02.lga>, jaysome <ja*****@spamcop.com>
writes
osmium wrote:
"vinay" writes:
2 .)write a general purpose function to convert any given year into
its roman equivalent.The following table shows the roman equivalents
of decimal integers.
Decimal Roman
1 i
5 v
10 x
50 l
100 c
500 d
1000 m
example : roman equivalent for 1988 is mdcccclxxxviii
roman equivalent of 1525 is mdxxv

Anyone who converted Roman numbers and came up with that first
example would be fed to the lions.


LOL

. That is not a proper Roman number, it is your
instructor's vague notion of what a Roman number is.


Please explain.


1988 is MCMLXXXVIII
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 30 '06 #9
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
1988 in Roman numerals is mcmlxxxviii, not mdcccclxxxviii.


http://mathworld.wolfram.com/RomanNumerals.html

Furthermore, the practice of placing smaller digits before large
ones to indicate subtraction of value was hardly ever used by
Romans and came into popularity in Europe after the invention of
the printing press (Wells 1986, p. 60; Cajori 1993, p. 31).
[...]
It should also be noted that the Romans themselves never wrote M
for 1000, but instead wrote (I) for 1000, (I)(I) for 2000, etc.,
and also occasionally wrote IM, IIM, etc. (Menninger 1992, p. 281;
Cajori 1993, p. 32).
--
All is vanity. -- Ecclesiastes
Mar 30 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2905
by: Martin | last post by:
When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented...
12
8448
by: G. | last post by:
Hi all, During my degree, BEng (Hons) Electronics and Communications Engineering, we did C programming every year, but I never kept it up, as I had no interest and didn't see the point. But now...
3
2464
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
134
7883
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
7
4926
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
30
32209
by: Jakle | last post by:
I have been googling, but can seem to find out about C GUI libraries. My main platform is Windows, but it would be nice to find a cross platform library. I've been programming with php, which...
47
5898
by: Thierry Chappuis | last post by:
Hi, I'm interested in techniques used to program in an object-oriented way using the C ANSI language. I'm studying the GObject library and Laurent Deniau's OOPC framework published on his web...
111
5430
by: Enteng | last post by:
Hi I'm thinking about learning C as my first programming language. Would you recommend it? Also how do you suggest that I learn it?What books/tutorials should I read for someone like me? Thanks...
14
3260
by: deko | last post by:
For building Windows desktop apps, the clear favorite is C#. But my clients can't afford to buy Microsoft products. So I need to develop software for Linux users and web applications. In the...
17
4661
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
0
7205
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
7093
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
7287
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
7353
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...
0
7468
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...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
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...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
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.