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
Why do we need to connect computers"​
Gennadij [26K]

Answer:

batteries cant last connected to nothing forever probably

8 0
2 years ago
In Java :
Natali5045456 [20]

Answer:

The code to this question can be given as:

Code:

//define code.

//conditional statements.

   if (Character.isLetter(passCode.charAt(0))) //if block

   {

       System.out.println("Alphabetic at 0"); //print message.

   }

   if (Character.isLetter(passCode.charAt(1))) //if block

   {

       System.out.println("Alphabetic at 1"); //print message.

   }

Explanation:

In this code, we define conditional statement and we use two if blocks. In both if blocks we use isLetter() function and charAt() function. The isLetter() function checks the inserted value is letter or not inside this function we use charAt() function that checks inserted value index 1 and 2 is the character or not.

  • In first if block we pass the user input value and check the condition that if the inserted value is a character and its index is 0 so, it will print Alphabetic at 0.
  • In second if block we pass the user input value and check the condition that if the inserted value is a character and its index is 1 so, it will print Alphabetic at 1.
5 0
3 years ago
Prove that any amount of postage greater than or equal to 64 cents can be obtained using only 5-cent and 17-cent stamps?
elixir [45]
Let P(n) be "a postage of n cents can be formed using 5-cent and 17-cent stamps if n is greater than 63".Basis step: P(64) is true since 64 cents postage can be formed with one 5-cent and one 17-cent stamp.Inductive step: Assume that P(n) is true, that is, postage of n cents can be formed using 5-cent and 17-cent stamps. We will show how to form postage of n + 1 cents. By the inductive hypothesis postage of n cents can be formed using 5-cent and 17-cent stamps. If this included a 17-cent stamp, replace this 17-cent stamp with two 5-cent stamps to obtain n + 1 cents postage. Otherwise, only 5-cent stamps were used and n  65. Hence there are at least three 5-cent stamps forming n cents. Remove three of these 5-cent stamps and replace them with two 17-cent stamps to obtain n + 1 cents postage.Hence P(n + 1) is true.
6 0
4 years ago
You can use ___________ to add dynamic features to a webpage such as search box that completes your search text automatically.
jonny [76]

Answer:

JavaScript

Explanation:

JavaScript is one of the simplest programming languages which makes the page dynamic and user interactive. It is a command based programming language that is a part of DHTML (Dynamic hypertext markup language ). The dynamic web page can be modified and its values can be changed.

JavaScript allows users to enter the value and provide the result at the same time and very fast.

JavaScript can be used online or offline too.

JavaScript provided much functionality such as when a customer searches anything, it completes the search automatically.

5 0
3 years ago
Explain the development, design and implementation aspects of algorithms in the development of software.
shtirl [24]

Explanation:

Phases of software development are ;

1. Requirements analysis

2.Domain analysis

3.Client-oriented design

4.Implementation-oriented design

5.Implementation

6.Integration

7.Packaging.

Ongoing Activities in Software Development

1. Risk analysis

2. Planning

3.Verification

4.Documentation

8 0
3 years ago
Other questions:
  • In these ones all your finding is the mean(average).
    14·1 answer
  • F=M×A<br> What is the acceleration of 50kg object pushed with a force of 500 newton?
    14·1 answer
  • What is a type of destructive program?
    8·2 answers
  • List the various types of social media that have been covered in the tutorial. Mention the key purposes for which each media typ
    9·1 answer
  • The following are the CPU and I/O behavior of three processes, timings in seconds.
    9·1 answer
  • LaToya is creating a program that will teach young children to type. What keyword should be used to create a loop that will prin
    9·1 answer
  • I need trash talk for a comeback:
    11·2 answers
  • What is mean by computer ?where it is used?​
    6·1 answer
  • If you aren’t familiar with the idea of a leap year, read “Why Is There a Leap Day?” before continuing with the lab.
    6·1 answer
  • Joining a computer to active directory involves joining the computer to a workgroup. True or false.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!