Answer:
Option (B) i.e., character is the correct answer to the following question.
Explanation:
Because the character quality demonstrates the ability of honesty, loyalty, and integrity, etc that shows the positive character of the person and Greg has good character quality because he thinks about their customers before he thinks about the money. So, that's why Greg shows the quality of the good character and he also loyal about their work.
E-text <span>is digital textual information that can be stored, manipulated, and transmitted by electronic devices. The term "e-text" stands for electronic text and it is used for any digital document written, read, transmitted or manipulated by electronic devices, such as smart phones, PCs, tablets,...The origins of the e-text are in the beginning of the Internet.</span>
011110 is the following base 10 & base 2 numbers in signed magnitude, one’s complement and two’s complement.
c)011110
<u>Explanation:</u>
Converting 10 base signed number as two complements. In computer signed is maintain in registered.
But computer needs all values in bits. In hardware it is considered as on or off methods. ASCII values are converted into bits and executed by CPU.
All values which been entered in computer are taken respective ASCII values and converted to bits. Normally sign symbol are maintained as registered flag which can be know if end user knows assembly programming languages.
Assembly language by which direct interacted with machine languages and faster in executions.
Answer:
#include <iostream>
#include<time.h>
using namespace std;
class Student
{
public :
int grades[20]; //array of grades
double average(int arr[],int n) //method to calculate average of array of grades passed
{
int sum=0;
for(int i=0;i<n;i++) //loop to calculate sum of all grades
sum=sum+arr[i];
return sum/n; //average is sum of items/number of items
}
int get_grade() //method to return grade number(1-14)
{
srand(time(NULL)); //method to generate different random number each time
int num = rand() % 14 + 1; //method to generate random number b/w 1-14
return num;
}
};
int main()
{
Student s;
int grade[]={5,3,9,8,10};
cout<<"Average is : "<<s.average(grade,5);
return 0;
}
OUTPUT :
Average is : 7
Explanation:
A class Student is created in which a method named average is there to calculate average of the grades passed and a method to generate a grade number b/w 1-14.