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 | | | | re: programming, in c,
vinay wrote:[color=blue]
> 1.)write a function power(a,b), to calculate the value of a raised to b.[/color]
#include <math.h>
double power(double a, double b)
{
return pow(a,b);
}
[color=blue]
> 2 .)write a general purpose function to convert any given year into[/color]
<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 | | | | re: programming, in c,
Hi everybody,
do you know how can I find a process-ID, and stop it in C!
Thanks
Vladimir S. Oka schrieb:
[color=blue]
> vinay wrote:[color=green]
> > 1.)write a function power(a,b), to calculate the value of a raised to b.[/color]
>
> #include <math.h>
>
> double power(double a, double b)
> {
> return pow(a,b);
> }
>[color=green]
> > 2 .)write a general purpose function to convert any given year into[/color]
>
> <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[/color] | | | | re: programming, in c,
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.
[color=blue]
> Hi everybody,
> do you know how can I find a process-ID, and stop it in C![/color]
Standard ISO/ANSI C knows not of processes. Ask in group discussing
your particular OS.
--
BR, Vladimir | | | | re: programming, in c,
"vinay" writes:
[color=blue]
> 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[/color]
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. | | | | re: programming, in c,
osmium wrote:
[color=blue]
> "vinay" writes:
>
>[color=green]
>>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[/color]
>
>
> Anyone who converted Roman numbers and came up with that first example
> would be fed to the lions.[/color]
LOL
.. That is not a proper Roman number, it is your[color=blue]
> instructor's vague notion of what a Roman number is.[/color]
Please explain. | | | | re: programming, in c,
jaysome <jaysome@spamcop.com> writes:[color=blue]
> osmium wrote:
>[color=green]
>> "vinay" writes:
>>[color=darkred]
>>>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[/color]
>> Anyone who converted Roman numbers and came up with that first
>> example would be fed to the lions.[/color]
>
> LOL
>
> . That is not a proper Roman number, it is your[color=green]
>> instructor's vague notion of what a Roman number is.[/color]
>
> Please explain.[/color]
1988 in Roman numerals is mcmlxxxviii, not mdcccclxxxviii.
--
Keith Thompson (The_Other_Keith) kst-u@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. | | | | re: programming, in c,
Keith Thompson <kst-u@mib.org> wrote:
[color=blue]
> jaysome <jaysome@spamcop.com> writes:[color=green]
> > osmium wrote:
> >[color=darkred]
> >> "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.[/color][/color][/color]
[color=blue][color=green]
> > . That is not a proper Roman number, it is your[color=darkred]
> >> instructor's vague notion of what a Roman number is.[/color]
> >
> > Please explain.[/color]
>
> 1988 in Roman numerals is mcmlxxxviii, not mdcccclxxxviii.[/color]
QVOQVE CREDO ROMANI NON IAM HABENT LITTERAE CAROLINGIAE
VVLGO 1988 LATINE MCMLXXXVIII EST
Richard | | | | re: programming, in c,
In message <VIMWf.508$jv3.6@fe02.lga>, jaysome <jaysome@spamcop.com>
writes[color=blue]
>osmium wrote:
>[color=green]
>> "vinay" writes:
>>[color=darkred]
>>>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[/color]
>> Anyone who converted Roman numbers and came up with that first
>>example would be fed to the lions.[/color]
>
>LOL
>
>. That is not a proper Roman number, it is your[color=green]
>> instructor's vague notion of what a Roman number is.[/color]
>
>Please explain.[/color]
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? | | | | re: programming, in c,
In article <lnacb8tj7c.fsf@nuthaus.mib.org>,
Keith Thompson <kst-u@mib.org> wrote:
[color=blue]
>1988 in Roman numerals is mcmlxxxviii, not mdcccclxxxviii.[/color] 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 |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,392 network members.
|