Write a program in pascal to solve a quadratic equation

Answers

Answer 1
Answer: 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.

Related Questions

A device in electricity that is analogous to a restriction in a water pipe is:
Desktop publishing design tools are represented by A. icons. B. windows. C. trackballs. D. modems.
When was the first commercial microprocessor introduced?
Hi! Is anyone really good at making pretty schedules and designs? I don't have any money, but I could give points. I'll give a small number of points on this answer, but if you make the schedule I'll give you lots of points! (I'll send you the actual parts of the schedule I just need someone to make it look pretty) Thank you so much!
Anyone can publish information on the internet without fact checking it. T or F

What are the 7 basic components found in a computer tower

Answers

1. Motherboard (you plug all other components to it)
2. Processor (CPU)
3. Memory (RAM)
4. Graphics card
5. Sound card (sometimes integrated with motherboard)
6. Hard Disk Drive (HDD)
7. Power supply unit
1.CPU(central processing unit) this is the brain of the computer
2.Ram( Random Acess Memory) this determines how much memory your computer can process at one time
3.Motherboard(this holds almost all the major computer componets and transfers all the info
4.Hard drive this holds all your programs, info etc.
5. Power Source, provides power to the whole computer
6 Graphics/Video card.(Optional) this helps with video games
7.disk drive optional if you want to upload a computer base
8. cooling system, if you want your computer to last. a long time it is vital to have a cooling system
9.A frame ,hold all the parts. together.

Which of the following describes an acceptable print resolution? A. 640 × 480
B. 300 dpi
C. 200 MB
D. 386 CPU

Answers

The answer is B. 300 dpi

which of the following keys on a keyboard allows you to select multiple cells located in different parts of your worksheet

Answers

Holding the "ctrl" key will allow this and holding "shift" will allow bulk cells to be selected provided they are all next to each other.

Which of the following is NOT a safety practice for working near power lines?

Answers

The answer is use rider posts, when available, to avoid getting too close to the power line. 

I hope this helps!  

What is a SIEM (Security Information and Event Management) system utilized for?a. It is an advanced intrusion protection system with a GUI-frontend.
b. it is a system used to evaluate data from security devices and generate alerts.
c. It is an intellectual property protection software that prevents data links, and generates alerts.
d. It is a system that monitors security device hardware availability

Answers

Answer:

the answer is D

Explanation:

It is a system that monitor security device hardware availability

Final answer:

A SIEM system is utilized to b) evaluate data from security devices and generate alerts. It helps organizations monitor and analyze security events in real-time, allowing them to identify and respond to potential threats promptly.

Explanation:

The system collects and correlates data from various sources such as firewalls, intrusion detection systems, and log management tools, providing a comprehensive view of the security landscape.

For example, if a SIEM system detects multiple failed login attempts from different IP addresses, it can generate an alert indicating a possible brute-force attack. Moreover, it can help with compliance requirements by providing audit logs, incident reports, and compliance dashboards.

The primary goal of a SIEM system is to improve the security posture of an organization by proactively identifying and mitigating security incidents.

Learn more about SIEM system here:

brainly.com/question/29607394

#SPJ11

Suppose you have eight squares of stained glass, all of different colors, and you would like to make a rectangular stained glass window in the shape of a 2 _ 4 grid.WebAssign Plot
How many different ways can you do this, taking symmetry into account? (Note that any pattern may be rotated 180Á, flipped vertically, or flipped horizontally. You should count all the possible resulting patterns as the same window.)

Answers

It is easy to do since it can be rotated, these are something called circular permutations. Now, as it can be flipped, there's no difference between clockwise and counter-clockwise. 

It's 8 tiles, all different, going around a rectangle. 

That means is 7! / 2 = 2520 ways