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
Rama09 [41]
3 years ago
11

Write a statement that computes the square root of a variable called discriminant

Computers and Technology
1 answer:
marysya [2.9K]3 years ago
4 0

Answer:

// here is statement in C++ to compute square root of a variable.

double result=sqrt(discriminant);

Explanation:

Sqrt() method will compute the square root of a variable in C++.Read a value of discriminant and find the square root of it and assign it to variable "result".

Implementation in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

  // variables

  double discriminant;

  // ask to enter discriminant

  cout<<"Enter the discriminant:";

  // read discriminant

  cin>>discriminant;

  double result=sqrt(discriminant);

  cout<<"Square root of discriminant is:"<<result<<endl;

  return 0;

}

Output:

Enter the discriminant:50                                                                                                  

Square root of discriminant is:7.07107

You might be interested in
What is anequality query​
klasskru [66]

In SQL, there are two ways to test for inequality in a query. You can use either the <> or !=

7 0
3 years ago
What is the significance of the vertical columns of the periodic table? what is the significance of the horizontal rows?
olga2289 [7]

Yes, horizontal rows are periods. “All of the elements in a period have a similar number of atomic orbitals. Each element in the top row (the principal time frame) has one orbital for its electrons. The greater part of the components in the second column (the second time frame) has two orbitals for their electrons. It goes down the occasional table that way. As of now, the most extreme number of electron orbitals or electron shells for any element is seven."<span>

<span>The vertical columns are groups. "The elements in a group have the same number of electrons in their outer orbital [and thus the same charge]. Every element in the first column (bunch one) has one electron in its external shell. Each element on the second segment (assemble two) has two electrons in the external shell. As you continue tallying the segments, you'll know what numbers of electrons are in the external shell.</span></span>

7 0
4 years ago
When visiting a museum Liam takes a photo of a painting with a smartphone which stores to image file. Which of the folllowing be
Maslowich

Answer: D. The phone can represent the photo in either digital or analog formats depending on the sampling technique that is used

Explanation:

Photos can either come out as analog or digital with digital formats having better overall quality overall. Digital photos are taken with digital cameras and so use electronic detectors while analog photography uses chemical processes.

The thing about photos taken by smartphones is that they can be represented as either digital or analog formats. It simply depends on the sampling techniques used.

5 0
3 years ago
Generally, what is the term for storage locations in a processor?
oksano4ka [1.4K]

Answer: Registers

Explanation:

Registers are small storage locations identified by different types of registers. The function of the register is to provide data for immediate processing to the CPU. These registers hold data temporarily and provide easy access of data to the processor.

6 0
3 years ago
Explain the differences between developing codes for open-ended questions and for closed ended questions
fenix001 [56]
What is the difference between open ended and closed ended questions?<span>Close-ended questions are those which can be answered by a simple "yes" or "no," while open-ended questions are those which require more thought and more than a simple one-word answer</span>
3 0
3 years ago
Other questions:
  • If memory accesses take 100 times more than register accesses, then a LOAD instruction will take ___ machine cycles than an ADD
    7·1 answer
  • True or False? In cloud computing, the term "Measured service" refers to a billing model in which gaining access to resources do
    12·1 answer
  • While configuring a switch, you noticed a configuration issue with an Ether Channel bundle. You thought you corrected the issue,
    11·1 answer
  • Write a Java program that will 1. Ask the user to type in a sentence, using a JOptionPane.showInputDialog(). 2. The program will
    10·1 answer
  • Over time, smart phones have become _____.
    12·2 answers
  • In this progress report, you will be focusing on allowing one of the four transactions listed below to be completed by the user
    14·1 answer
  • 1. Complete the following program so that it computes the maximum and minimum of the elements in the array. Write the program so
    6·1 answer
  • You choose Option A for Overdraft Options. What would happen if you had $30 in your checking account and you tried to take out $
    12·1 answer
  • Select the correct answer.
    11·2 answers
  • 30 POINTS FOR THE CORRECT ANSWERS
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!