If the language is zero indexed:
a[ 33 ]
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The iteration variable begins counting with 0 or 1.
As you know the iteration mostly done in the looping. For example, for loop and foreach loop and while loop, etc.
It depends upon you that from where you can begin the counting. You can begin counting either from zero or from one.
For example: this program counts 0 to 9.
<em>int total=0;</em>
<em>for(int i=0; i>10;i++)</em>
<em>{</em>
<em>total = total+i;</em>
<em>}</em>
Let's suppose, if you want to begin counting from 1, then the loop should look like below:
<em>int total=0;</em>
<em>for(int i=1; i>10;i++)</em>
<em>{</em>
<em>total = total+i;</em>
<em>}</em>
The Chronic state of generalized anxiety disorder is an unrealistic and excessive worry about two or more life that last for at least six months.
<h3>What disorder is chronic worry?</h3>
Generalized Anxiety Disorder, GAD, is known to be a form of an anxiety disorder that is known by:
- chronic anxiety
- exaggerated worry
- tension and others.
Note that it is also called an excessive or unrealistic worry in regards to life circumstances that is said to occur for about at least six months.
Hence, The Chronic state of generalized anxiety disorder is an unrealistic and excessive worry about two or more life that last for at least six months.
Learn more about Generalized Anxiety Disorder from
brainly.com/question/22676443
#SPJ1
I would say
Gently type on the computer. Set water away from computer.
#include <iostream>
#include <vector>
using namespace std;
class Student
{
public:
Student(int mark)
{
this->mark = mark;
if (mark >= 90 && mark <= 100)
grade = 'A';
else if (mark >= 80 && mark <= 89)
grade = 'B';
else if (mark >= 70 && mark <= 79)
grade = 'C';
else if (mark < 70 && mark >= 0)
grade = 'D';
else
cout << "Invalid mark, grade not assigned";
}
int getMark()
{
return mark;
}
char getGrade()
{
return grade;
}
private:
int mark;
char grade;
};
int main()
{
vector<Student> students;
int num, mark;
cout << "Enter number of students: ";
cin >> num;
if (num <= 0)
cout << "Invalid number of students, exiting";
else
{
for (int i = 1; i <= num; i++)
{
cout << "Enter marks for student " << i << ": ";
cin >> mark;
Student s(mark);
students.push_back(s);
}
}
// do whatever you like with the vector from here onwards, such as:
/*
for (int i = 0; i < students.size(); i++)
{
cout << "Student " << i + 1 << " grade: " << students[i].getGrade() << endl;
}
*/
return 0;
}