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
anzhelika [568]
4 years ago
10

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

, 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.void check(double a, double b, double c){ if(a==0)cout<<"no solution for a=0";return; }
Computers and Technology
1 answer:
MA_775_DIABLO [31]4 years ago
8 0

Answer:

if ((b*b - 4*a*c)<0)

    cout << "no real solutions";

return;

Explanation:

To check if "b squared" – 4ac is negative, we use the expression  if ((b*b - 4*a*c)<0). This expression evaluates the 'bsquared' and substracts '4ac' from it. It then compares the resulting value with zero. if it is less than zero it means it is a negative number, so it executes the statement following cout << "no real solutions"; and returns

You might be interested in
What would be the result of running the program below?list ← [ 1, 2, 3 ]APPEND ( list, 5 )INSERT ( list, 4, 4 )REMOVE ( list, 5
Korvikt [17]

Answer:

.b. The program would display the list [1, 2, 3, 4]

Explanation:

list ← [ 1, 2, 3 ]: this would create a list of [1, 2, 3]

APPEND ( list, 5 ): this would append 5 to the existing list and the output would be [1, 2, 3, 4, 5]

INSERT ( list, 4, 4 ): this would insert 4 at index 4 of the list and we would have the list to be [1, 2, 3, 5, 4]. The list index counting is from zero.

REMOVE ( list, 5 ): this would remove the occurrence of 5 from the list and the resulting list is [1, 2, 3, 4]

DISPLAY ( list ): this would display the list which is [1, 2, 3, 4]

7 0
3 years ago
While adding voices to an animation, what kind of room should you choose?
MrRissso [65]

Answer:

A. A quiet room

Explanation:

Because if you open the windows the will be noise

a huge room will echoe

a room with air conditioning will make noise

7 0
4 years ago
Visual culture is an area of academic study that deals with the totality of images and visual objects produced in ____________,
leonid [27]

Answer:

In: industrial and postindustrial nations

5 0
4 years ago
What is Network Address Translation (NAT) and how does it work in a network?
Allisa [31]

Answer:

 Network address translation (NAT) is a method for designing the IP address and it basically operate on router. NAT usually connect two network together and translate the unique and private address into the legal address.

Network address translation is a technique that works in network  for re-mapping the IP address into another by modify the network address information into the IP packet header. NAT gateway are used for the entire private network.  

The network address translation use both the security and economical purpose in an organization to limit the public IP address.

5 0
3 years ago
You have just installed a new NIC in your PC to replace the old one that had started malfunctioning. What additional software mu
miskamm [114]

Answer:

The additional software that must be installed is a device driver.  

Explanation:

Device driver is a software program that is used to control a device connected to a computer.

If a user later buys a new type of device that the operating system did not recognize, new device driver will have to be installed just as in the given question when new NIC is installed. Device driver allows communication between hardware device and operating system.

So device driver will allow the OS to communicate with the new installed NIC.

4 0
3 years ago
Other questions:
  • In the context of prototyping during the design phase of the systems development life cycle (SDLC), a _____ prototype shows user
    14·1 answer
  • Attacker player X is standing still on a corner kick, as the ball is played, he jumps up with his arms flailing above his should
    8·1 answer
  • Write a Java program that generates a random number between 0 and 50. Then, the program prompts for guesses until the user is co
    14·1 answer
  • What are the advantages of a diverse workforce? Select all that apply.
    6·2 answers
  • Ex. Q about the crazy effects of complements/substitutes on a wide range of goods:
    7·1 answer
  • The emergence of MP3 (iPod) technology is an example of creative destruction because a. It is less expensive than compact discs
    14·1 answer
  • Which practice is the safest way to sit at a desk while typing on the computer?
    12·1 answer
  • Made from fruit juice, water and sugar, The American version contains milk and cream and sometimes egg white​
    9·1 answer
  • Using this statement to answer the following question “FIFA World Cup 2010: (1+9) From Today!” (Ignore Quotation)
    9·1 answer
  • What happens when you run a program in Python? ​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!