def computeGrade(float grade, str a){
a = "A" if a > 0.9 else a = "B" if a > 0.8 else "C"
return a;
}
print(a)
Answer:
can't helpnyounddjdjzjzjsjejs jvm d
Answer:
<em>C++</em>
///////////////////////////////////////////////////////////////////////////////////////////
#include <iostream>
using namespace std;
//////////////////////////////////////////////////////////////////
class QuadraticEquation {
int a, b, c;
public:
QuadraticEquation(int a, int b, int c) {
this->a = a;
this->b = b;
this->c = c;
}
////////////////////////////////////////
int getA() {
return a;
}
int getB() {
return b;
}
int getC() {
return c;
}
////////////////////////////////////////
// returns the discriminant, which is b2-4ac
int getDiscriminant() {
return (b*2)-(4*a*c);
}
int getRoot1() {
if (getDiscriminant() < 0)
return 0;
else {
// Please specify how to calculate the two roots.
return 1;
}
}
int getRoot2() {
if (getDiscriminant() < 0)
return 0;
else {
// Please specify how to calculate the two roots.
return -1;
}
}
};
//////////////////////////////////////////////////////////////////
int main() {
return 0;
}
The answer should be RAM = Random Access Memory
RAM memory is used to store current data while the computer is on. Bear in mind that after the computer is shutdown all data in RAM is lost.
10.......................................