Answer:
Answered below
Explanation:
//Programmed in Java
public double avgList(int [] nums){
int I;
double sumOfNumbers = 0;
double averageOfNumbers = 0;
//Loop over to sum all elements in the list.
for(I = 0; I < nums.length; I++){
sumOfNumbers += nums[I];
}
//Calculate the average
averageOfNumbers = sumOfNumbers/ nums.length;
return averageOfNumbers;
}
Answer:
Jason = <span>20yrs.old</span>
Mandy = <span>15yrs.old</span>
Explanation:
Let
J = Jason's age
M = Mandy's age
<span>J+M=35</span> ..... eq. 1
<span>J−10=2<span>(M−10)</span></span> ..... eq. 2
From eq. 1
<span>J=35−M</span>
Substitute this in eq. 2.
<span><span>(35−M)</span>−10=2<span>(M−10)</span></span>
<span>35−10−M=2M−20</span>
<span>35−10+20=2M+M</span>
<span>45=3M</span>
<span><span>453</span>=<span><span>3M</span>3</span></span>
<span>15=M</span>
<span>J=35−M</span>
<span>J=35−15</span>
<span>J=<span>20</span></span>
Its multiple choice what did they say
Answer:
void print_popcorn_time(int bag_ounces){
if(bag_ounces < 3){
cout<<"Too small"<<endl;
}else if(bag_ounces > 10){
cout<<"Too large"<<endl;
}else{
cout<<(6 * bag_ounces)<<"seconds"<<endl;
}
}
Explanation:
The function is the block of the statement which performs the special task.
For checking the condition in the program, the if-else statement is used.
It can check the condition one or two but if we want to check the more than two different conditions then the continuous if-else statement is used.
syntax of continuous if else:
if(condition){
statement;
}else if(condition)
statement;
}else{
statement;
}
In the question, there are three conditions;
1. bag_ounces is less than 3
2. bag_ounces greater than 10
3. else part.
we put the condition in the above if-else statement and print the corresponding message.
Answer:
The minimum number of different resumes formats that an individual should have prepared is b. 2 The first should be a condensed format. A good resume should only require one page. However, when things get too cramped in a single page, a two-page format can be used. A two-page format can be used to provide more details about yourself.
Explanation: