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;
}
Answer:
k(4) = 10
General Formulas and Concepts:
<u>Pre-Algebra</u>
Order of Operations: BPEMDAS
- Brackets
- Parenthesis
- Exponents
- Multiplication
- Division
- Addition
- Subtraction
<u>Algebra I</u>
Step-by-step explanation:
<u>Step 1: Define</u>
k(x) = 18 - 2x
k(4) is x = 4
<u>Step 2: Evaluate</u>
- Substitute in <em>x</em>: k(4) = 18 - 2(4)
- Multiply: k(4) = 18 - 8
- Subtract: k(4) = 10
These two lines have the same rate of change
We are given :
The ratio of orange juice to pineapple juice in tropical treat punch = 4:3 or 4/3.
Number of oz of orange juice = 64 oz.
Let us assume number of oz pineapple juice does he need = p.
We can setup an proportion:
64 : p = 4 : 3
On cross multiplication we get
64 × 3 = 4 × p
192 = 4p
Dividing both sides by 4, we get
p = 48.
<h3>Therefore, he needs 48 oz of pineapple juice.</h3>
The cost of the meal multiplied by .19