Answer:
Algorithm
Start
Int n // To represent the number of array
Input n
Int countsearch = 0
float search
Float [] numbers // To represent an array of non decreasing number
// Input array elements but first Initialise a counter element
Int count = 0, digit
Do
// Check if element to be inserted is the first element
If(count == 0) Then
Input numbers[count]
Else
lbl: Input digit
If(digit > numbers[count-1]) then
numbers[count] = digit
Else
Output "Number must be greater than the previous number"
Goto lbl
Endif
Endif
count = count + 1
While(count<n)
count = 0
// Input element to count
input search
// Begin searching and counting
Do
if(numbers [count] == search)
countsearch = countsearch+1;
End if
While (count < n)
Output count
Program to illustrate the above
// Written in C++
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
int main()
{
// Variable declaration
float [] numbers;
int n, count;
float num, searchdigit;
cout<<"Number of array elements: ";
cin>> n;
// Enter array element
for(int I = 0; I<n;I++)
{
if(I == 0)
{
cin>>numbers [0]
}
else
{
lbl: cin>>num;
if(num >= numbers [I])
{
numbers [I] = num;
}
else
{
goto lbl;
}
}
// Search for a particular number
int search;
cin>>searchdigit;
for(int I = 0; I<n; I++)
{
if(numbers[I] == searchdigit
search++
}
}
// Print result
cout<<search;
return 0;
}
B:Interest
Hoped this helped have a nice day
Answer:
m + 2
2 dollars + one dollar per minute
Answer:
The answer is "Options A, B, and E represent mutually exclusive events".
Step-by-step explanation:
Two occurrences that can happen immediately called mutually incompatible. Let's now glance at our options and figure out where the statements are mutually incompatible events.
In Option A: You could see that landing on an unwanted portion and arriving on 2 are events that are locally incompatible, even as undesirable portion contains 3 and 4, and 2 were shaded.
In Option B: Arriving on a shaded part and falling on 3 are also mutually incompatible because there are 3 on a windows azure.
In Option C: A darkened portion and an increasing amount can land while 2 would be an even number as well as on the shaded portion. That number is very much the same.
In Option D: At the same time as 4 is greater than 3 and it is situated upon an undistressed section, landing and attracting a number larger than 3 can happen.
In Option E: Landing on a shaded part and landing on even a shaded part is an excluding event, since shaders may either be shaded or unlit.
Answer:
6795.70
Step-by-step explanation:
smart people