functions

Dokončeno Zveřejněno Feb 25, 2002 K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

a) Implement a function called TotalMultiple that take in an array called floatarray of 3 float numbers and a reference parameter called TM. For each floating values in the floatarray, the function multiplies it by TM and total up these values and store it into TM. For example, if floatarray has {2.0,4.0,2.0} and TM = 2.0, TotalMultiple stores 16.0 (2.0 * 2 + 4.0 * 2 + 2.0 * 2 = 16.0) to TM. b) Implement an iterative function called xypower that take in 2 reference parameters x and y. Upon exit the function xypower stores the value of x to the power of y back to x and stores the value of y to x back to y. For example, if x = 2 and y = 3, upon exit of xypower, x will have the value 8 (2 to power of 3) and y the value 9 (3 to the power of 2). c) Implement a recursive function called recurstr that take a string paramter str and an integer parameter n. The function should display n number of times string str is printed on the screen. For e.g. recurstr(‘C is Fun!’, 10) will print ‘C is Fun!’ on the screen 10 times. d) Implement a recursive function PrintInt that take in an array of integers intarr and an integer parameter num that specifies the number of integers in the array. The recursive func should printout values in reverse order e) Write a function EncryptStr that take in a string parameters str, a integer parameter pos. The function EncryptStr changes all characters in str to the next pos characters. For example, Encrypt ('Hello', 2) returns 'Jgnnq'. f) Write a recursive function MulMinMax that take in 3 value integer parameters min, max and nextnum and return the product from min to max increasing min by nextnum up to and including max. For example, MulMinMax(2,10,3) returns 80 (2x5x8). g) Change your solution for MulMinMax above by passing in the 3 integer parameters as reference parameters in an iterative solution.

## Deliverables

Complete and fully-functional working program(s) in complete source code of all work done. Complete copyrights to all work purchased.

## Platform

dos

Programování v C Inženýrství MySQL PHP Softwarová architektura Testování softwaru

Identifikační číslo projektu: #2840079

O projektu

2 nabídek Projekt na dálku Aktivní Feb 25, 2002

Uděleno uživateli:

pickingapples

See private message.

$7 USD za 14 dní
(43 recenzí)
4.8

2 Freelnceři na tento projekt zveřejňují nabídky v průměru $6

rcn2000

See private message.

$4.25 USD za 14 dní
(6 Recenzí)
3.7