1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stepladder [879]
3 years ago
9

Given that a function receives three parameters a, b, c, of type double , write some code, to be included as part of the functio

n, that determines whether the value of "b squared" - 4ac is negative. If negative, the code prints out the message "no real solutions" and returns from the function
Computers and Technology
1 answer:
hoa [83]3 years ago
5 0

Answer:

   public static void quad(double a, double b, double c) {

       double D = (Math.pow(b, 2)) - (4 * a * c);

       if (D<0){

           System.out.println("no real solutions");

       }

   }

Explanation:

The code snippet above implements the function in Java programming language

As required by the question, the line  double D = (Math.pow(b, 2)) - (4 * a * c); evaluates b squared" - 4ac and assignes the value to the variable D

An if statement is used to test if D is less than 0, if this is true the message no real solutions is printed

You might be interested in
Describe the difference between the circumscribed and inscribed options when using the AutoCAD Polygon command
marysya [2.9K]

Answer: Describe the difference between circumscribed and inscribed options when using the autocad polygon tool. Circumscribed draws the object around the circle while inscribed draws the object inside the circle. The Length is equal to 5.3151 and the Angle is equal to 41 degrees.

Explanation:

3 0
3 years ago
What is the need for using secondary memory devices?
Savatey [412]
Hi pupil here's your answer ::


➡➡➡➡➡➡➡➡➡➡➡➡➡

They are needed because of the following reasons :

》The storage capacity of primary memory is limited.

》 Primary memory (RAM) is volatile in nature.

》 RAM is not portable memory.

》 RAM chips are expensive. Increasing RAM will increase the price of the computer.

So, for the above reasons we need to use the Secondary memory devices.

⬅⬅⬅⬅⬅⬅⬅⬅⬅⬅⬅⬅⬅


Hope this helps . . . . .
7 0
3 years ago
Information systems that support the sales process of B2C companies are typically Web storefronts that customers use to enter an
RoseWind [281]

Answer:

This statement is CORRECT in electronic commerce and Online stores

Explanation:

The term B2C is derived from e-commerce which means Business to Consumer which describes  the process of selling goods and services directly to consumers who are the end-users. The advent of the dot com web boom led to a huge increase in these kinds of companies that sell directly to consumers through their online (website) channels.

3 0
3 years ago
Consider the following scenario. As you troubleshoot the problem, what motherboard device would be the first to
prohojiy [21]
Check if the board is getting power, if it isn’t, than you may have a power supply issue.
8 0
3 years ago
Why are medical coders using encoded software
EastWind [94]
To keep the medical records confidential otherwise, hackers would take advantage of them and sell them to the highest bidder 
3 0
3 years ago
Other questions:
  • Why are digital calendars considered to be a convenient way to maintain a study schedule?
    10·2 answers
  • What does the security element of non-repudiation mean in e-commerce cybersecurity? A. Data needs to be available at all times.
    10·1 answer
  • While ________ is centered on creating procedures, ________ is centered on creating objects. Procedural programming, class progr
    10·1 answer
  • I'm using my PS4 dual shock controller to connect to the fire stick on the tv so I can play games with it but whenever I try to
    10·1 answer
  • _____ can analyze the content of social media communications within the context of a specific brand or product and determine wha
    13·1 answer
  • I need help with this
    12·1 answer
  • In Word, the mailing list is known as the ​
    12·1 answer
  • A new PKI is being built at a company, but the network administrator has concerns about spikes of traffic occurring twice a day
    5·1 answer
  • On what aspect of digital media do people often focus on at the expense of the important supporting roles?
    8·1 answer
  • Match each role to the corresponding web development task.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!