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;
}
What problem i dont see nun
Answer:
y=0.3x
Step-by-step explanation:
Formula = 
y α x
y = kx
Where k is the constant of proportionality.
When y = 1.5; x = 5;
We substitute these known values in the equation,
y = kx
1.5 = k5
Dividing both sides of the equation by 5 to find the value for k, we have
1.5/5= k0.3/5
Therefore,
K = 0.3
Having found the value of k,
We substitute this value into the relationship
y = kx
Therefore we have,
y = 0.3x.
The direct variation function is therefore,
y = 0.3x.
[RevyBreeze]
The rachos were sold are 6
because ratio of them at the begining = 3/4
after selling some popcorns, ratio of them still 3/4
they sold 8 popcorns mean 3/4 = ?rachos / 8popcorns sold
the rachos sold = 3*8/4 = 6
Let x = red
Let 0.5x = green
Let (x) + (0.5x) = 1.5x = blue
Let 0.5(1.5x) = 0.75x = yellow
Let 0.75x + 4 = brown





Use this value to calculate the other required numbers.
red = 28
green = 0.5x = 0.5(28) = 14
blue = 1.5x = 1.5(28) = 42
yellow = 0.75x = 0.75(28) = 21
brown = 0.75x + 4 = 0.75(28) + 4 = 25