Write a function to increase the volume on the passed sound just between the passed start and end index.

The function does not specify by what amount to increase the volume, therefore anything from multiplying the value by a number greater than one to normalizing the segment would be appropriate.


```
def increaseVolumeBetween(sound, startIndex, endIndex):
soundSamples = getSamples(sound)

for index in range(startIndex, endIndex):
sourceValue = 2*getSampleValue(soundSamples[index])
setSampleValue(soundSamples[index], sourceValue)
```

Computer Science & Information Technology

You might also like to view...

The name of an array stores the __________ of the first array element.

a. value b. memory address c. element number d. data type e. None of these

Computer Science & Information Technology

If a device does not receive an IP address from a DHCP server, the device may resort to what kind of IP address?

A. APIPA B. random IP address C. public IP address D. dynamic IP address

Computer Science & Information Technology

A hidden slide can be identified by the:

A) diagonal line through the slide number in the Slides/Outline pane. B) special chime that plays when the slide is skipped. C) dimmed out slide in the Slide pane. D) gap indicating a missing slide in the Slides/Outline pane.

Computer Science & Information Technology

The traditional C++ approach to error handling uses a function to return a specific value to indicate specific operations.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology