Answer:
18
Explanation:
lets go step by step.
the function called tryIt has a value, a variable named "a". this "a" variable will be whatever the user enters when the program says, Enter a number.
ok so if we enter "a" as 2, and b in the function will always be 7, and 2 + 7 equals 9,
and the ans variable (short for answer) will take the result of the function (9) and multiply it by 2,
then the answer is 18
Answer:
True
Explanation:
You will find that an electronic resume is an ASCII or plain text, HTML or PDF document which gives an employer the information related to the candidates for his job posting like education, professional experience, job qualification, and it is meant to be operated by a computer program rather than a certain human being. And hence, the above statement is true.
Seasons are caused by the earths changing distance from the sun
Answer:
C++.
Explanation:
int main() {
int num_days_scores;
cout<<"How many days of scores? ";
cin<<num_days_scores;
cout<<endl;
///////////////////////////////////////////////////////////////////////////
// Get scores for each day and add it to array
int score = 0;
int* score_array = new int[num_days_scores];
for (int i = 0; i < num_days_scores; i++) {
cout<<Enter score for day "<<i+1<<": ";
cin<<score;
score_array[i] = score;
}
////////////////////////////////////////////////////////////////////////////
// Calculate total of scores by traversing array
int final_score = 0;
for (int i = 0; i < num_days_scores; i++) {
final_score += score_array[i];
}
cout<<"The total score of the "<<num_days_scores<<" days is "<<final_score;
////////////////////////////////////////////////////////////////////////////
delete[] score_array;
return 0;
}