Em Andamento

Write some Software using C language for beginners.

This is for a 100 level class. Very basic programming, something that anyone who just learned could figure out.

1) The first program will compute compounded interest

2) Write a main program that calls a sub-function (child function) that indicates if the value passed is odd

3) Write the function:

int power(int n, int m)

The power() function computes a int n raised to the integer m power (i.e.: nm).

.

Use it in a main program that prompts the user for n and m, and then prints the result = nm. The program should repeat this process until the user enters a value of 0 for n, which causes the main program to exit.

4) Write a program that consists of two functions, main and isprime that meet the following specifications:

The function isprime should have the following prototype:

int isprime(int x);

The function should return value 1 if x is a prime number, and 0 otherwise. For example, the function call "isprime(17);" should return 1, since 17 has no divisors other than 17 and 1 (hence 17 is a prime number). The call "isprime(21);" should return 0 (3 and 7 are both divisors of 21, hence 21 is not a prime number).

The function main will print out all the prime numbers between 1 and 1000. Print the prime numbers in rows, 10 numbers per row, in evenly spaced columns.

Habilidades: Programação C

Ver mais: which is prime numbers, which is not a prime number, which are prime numbers, using prime numbers, use of prime numbers, two prime numbers, the first programming language, the c language, software for c++ programming, programming using c++, programming using c#, programming for beginners c++, programming c# for beginners, programming beginners, prime numbers of 10, prime numbers example, prime numbers and, prime numbers 2, prime numbers 1 to 10, prime numbers 1 6, prime numbers 1 10, prime numbers 1, prime number of 2, prime number function, prime number example

Acerca do Empregador:
( 3 comentários ) San Diego, United States

ID do Projeto: #6779245

Premiar a:

UmerTahir1

The task you require can be done given a little time, As I am starting from scratch I can work on the lowest rate possible with quickest delivery possible.

$10 USD em 1 dia
(0 Avaliações)
0.0

11 freelancers estão ofertando em média $20 para este trabalho

macfij7

Hi, I can solve this problem - C language is my favorite one. I can start working as soon as possible. Cherrs, Maciek :)

$20 USD em 1 dia
(1 Comentário)
1.8
jangkoo

A proposal has not yet been provided

$20 USD em 1 dia
(3 Comentários)
1.7
iWillSolutions

Dear Client, I can do this work for you. Please feel free to message me for further discussion. I will finish it off and give it to you in hours.

$17 USD em 1 dia
(1 Comentário)
1.0
shahidost

I am very confident about your project. I have two years of experience in C/C++ and I can easily done this. You can trust me and I will provide your project with in time in complete form with accuracy. You consider it Mais

$20 USD em 1 dia
(0 Comentários)
0.0
sondossheb

Hello Sir, I've an excellent experience in C programming, I can deliver a robust code and application Thanks

$15 USD em 1 dia
(0 Comentários)
0.0
MarinaIT

A proposal has not yet been provided

$23 USD em 1 dia
(0 Comentários)
0.0
ozensrdr

Serdar Özen Mechatronic Engineer Education Information University (Bachelor's Degree) Yıldız Technical University (YTU) - (Formal Education) 2.61 / 4 09.2010- 06.2014 Faculty of Mechanics, Mechatronic Engineering ( Mais

$25 USD in 3 dias
(0 Comentários)
0.0
kasijus

A proposal has not yet been provided

$15 USD em 1 dia
(0 Comentários)
0.0
spitechfl1

A proposal has not yet been provided

$13 USD em 1 dia
(0 Comentários)
0.0
danieldogaru365

Hello! I am very interested in your project and I would like to work for you. It is very easy for me and I can provide the work really quick. Please contact me if you are interested. Have a nice day!

$25 USD em 1 dia
(0 Comentários)
0.0
NPSS

A proposal has not yet been provided

$25 USD em 1 dia
(0 Comentários)
0.0