Answer:
The UML diagram and the story is shown on the first uploaded image
Explanation:
For purposes of freeeing up some hard disk space and find the biggest files on you, there are couple of ways one can do so.
Using explorer, open my computer and then click on the search box at the top most right side. A little window will pop up with several options. Since you want to find the biggest files you will select size:Largest option. You can also press WIN + F on the keyboard and follow the same procedure.
#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;
}
Answer:
WAIT
Explanation:
Based on the information provided within the question it can be said that the processor server puts the process in a WAIT state. In other words it temporarily pauses the server from taking any action until the message from the service request comes back with a response. Once that happens it receives new instructions and is resumed.