Program p1;
var a,b,c,d : integer; {i presume you give integer numbers for the values of a, b, c }
x1, x2 : real;
begin
write('a='); readln(a);
write('b='); readln(b);
write('c=');readln(c);
d:=b*b - 4*a*c
if a=0 then x1=x2= - c/b
else
if d>0 then begin
x1:=(-b+sqrt(d)) / (2*a);
x2:=(-b - sqrt(d))/(2*a);
end;
else if d=0 then x1=x2= - b /(2*a)
else write ("no specific solution because d<0");
writeln('x1=', x1);
writeln('x2=',x2);
readln;
end.
Answer:
C++.
Explanation:
#include <iostream>
#include <string>
using namespace std;
////////////////////////////////////////////////////////////
class Television {
string brand;
float screen_size;
bool powerOn;
int volume;
int channel;
public:
// Comments
Television(string brand, int screen_size) {
this->brand = brand;
this->screen_size = screen_size;
powerOn = false;
volume = 20;
channel = 2;
}
//////////////////////////////////////////
// Comments
int getVolume() {
return volume;
}
// Comments
int getChannel() {
return channel;
}
// Comments
string getManufacturer() {
return brand;
}
// Comments
float getScreenSize() {
screen_size;
}
///////////////////////////////////////////
// Comments
void setChannel(int channel) {
this->channel = channel;
}
// Comments
void power() {
if (!powerOn)
powerOn = !powerOn;
}
// Comments
void increaseVolume() {
volume = volume + 1;
}
// Comments
void decreseVolume() {
volume = volume - 1;
}
};
Answer:
The answer to this question is DVD and DVD-RW
Explanation: