Answer:
If you are using Python,
```count = 0
for i in range(0, 79):
a = int(input("Input a number: "))
if 100 <= a <= 1000:
if a > 500:
count += 1
else:
print("Please input a number between 100 and 1000!")
i -= 1
print(count)```
Explanation:
count refers to the number of 500s and above,
the for loop is required for the program to loop 80 times,
a is the input collected,
the nested if is to check whether the number is above 500 and the if is used to check if the number is between 100 and 1000 if not, it will output that you need to input a number between 100 and 1000,
the i-=1 is required to make sure that part wasn't counted.
and the last print is to output the number of numbers above 500
Answer:
A complex wave is a wave made up of a series of sine waves; it is therefore more complex than a single pure sine wave. This series of sine waves always contains a wave called the "FUNDAMENTAL", that has the same FREQUENCY (repetition rate) as the COMPLEX WAVE being created.
Examples for complex wave:
<em>• The Square wave
</em>
<em>• The Triangular wave
</em>
<em>• The Saw-tooth wave</em>
<em />
<em>Hope you got it </em>
<em>
If you have any question just ask me
</em>
<em>If you think this is the best answer please mark me as brainliest</em>
You will have to do this as we are not you and we do not know local business/websites. Sorry we could not help.
Answer:
Explanation:
Since all of the items in the array would be integers sorting them would not be a problem regardless of the difference in integers. O(n) time would be impossible unless the array is already sorted, otherwise, the best runtime we can hope for would be such a method like the one below with a runtime of O(n^2)
static void sortingMethod(int arr[], int n)
{
int x, y, temp;
boolean swapped;
for (x = 0; x < n - 1; x++)
{
swapped = false;
for (y = 0; y < n - x - 1; y++)
{
if (arr[y] > arr[y + 1])
{
temp = arr[y];
arr[y] = arr[y + 1];
arr[y + 1] = temp;
swapped = true;
}
}
if (swapped == false)
break;
}
}