Write a function integerPower( base, exponent ) that returns the value of

base exponent

For example, integerPower( 3, 4 ) = 3 * 3 * 3 * 3. Assume that exponent is a positive, nonzero integer and base is an
integer. Function integerPower should use for or while to control the calculation. Do not use any math library functions.
Incorporate this function into a script that reads integer values from an HTML form for base and exponent and performs the
calculation with the integerPower function. The HTML form should consist of two text fields and a button to initiate the cal-
culation. The user should interact with the program by typing numbers in both text fields then clicking the button.


```

1

2

3

4

5

6

7 Solution: 16.13

8

9

31

32

33

34



35

36

37

38

39

40

41

42

43
Base
Exponent
Result Computer Science & Information Technology

You might also like to view...

Give a command line for displaying the files lab1, lab2, lab3, and lab4. Can you give two more command lines that do the same thing? What is the command line for displaying the files lab1.c, lab2.c, lab3.c, and lab4.c? (Hint: Use shell metacharacters.)

What will be an ideal response?

Computer Science & Information Technology

Which Cisco IOS command is used to determine if an IPv6 ACL is applied to an interface?

A) show ipv6 protocols B) show ipv6 interface C) show ipv6 access-list D) show ipv6 traffic-filter

Computer Science & Information Technology

How does software configuration management differ for Web and Mobile Apps?

What will be an ideal response?

Computer Science & Information Technology

In the accompanying figure, which item is used to change the image format?

A. A, the Preset text box B. B, the File format text box C. C, the Optimized check box D. D, the Save button

Computer Science & Information Technology