473,569 Members | 2,676 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 2604

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*****@spamco p.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_Keit h) 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.or g> wrote:
jaysome <ja*****@spamco p.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*****@spamco p.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.or g>,
Keith Thompson <ks***@mib.or g> 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
2910
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 programming?
12
8454
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 I really want to get back into it as I see a point with GNU/Linux. I want to get my old skills back and write something or help on some projects...
3
2468
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 a QA in an MNC in India, since I graduated in September 2003. I am working in a QA role which requires me to do some Winrunner automation, and...
134
7917
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 increasingly been using scripting languages (especially Python and Bourne shell) which offer the same speed and yet are far more simple and safe to...
7
4934
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 developed significant content for the C programming language that is available at: https://www.securecoding.cert.org/ by clicking on the "CERT C...
30
32216
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 has a C/C++ syntax structure, but want to move on to compliled languages. I was all ready to go with C++ and wxWindows, but I'm applying for an...
47
5902
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 site at http://ldeniau.web.cern.ch/ldeniau/html/oopc/oopc.html. The approach is very instructive. I know that I could do much of this stuff with e.g....
111
5449
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 in advance! -entengk
14
3274
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 open source world, what is the programmer's language of choice? Judging by the number of members in each of these...
17
4687
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 smallest tightest algorithms to preform specific functions. I've also grown and matured a lot, and am wiser and older. I'm reading through the C+...
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5218
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2111
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 we have to send another system
1
1209
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.