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
LuckyWell [14K]
3 years ago
15

Define a function called hasRealSolution that takes three parameters containing integer values: a, b, and c. If "b squared" minu

s 4ac is negative, the function returns False otherwise, it returns True.
Computers and Technology
1 answer:
sukhopar [10]3 years ago
6 0

Answer:

Following are the function in C++ Programming language

bool hasRealSolution(int a,int b,int c) // function definition

{

if ((b*b)-(4*a*c)<0) // check condition

return false;

else

return true;

}

Explanation:

Following are the program of this question

#include <iostream>  // header file

using namespace std; // namespace

bool hasRealSolution(int a,int b,int c); // prototype

bool hasRealSolution(int a,int b,int c) // function definition

{

if ((b*b)-(4*a*c)<0)  // check condition

return false;

else

return true;

}

int main() // main function

{

   bool x=hasRealSolution(1,2,4); // calling

  cout<<x; // display the return value

  return 0;

}

Output:

0

Following are the description of code:

  • We declared a function i.e "hasRealSolution " of "bool" type.In this function there are three parameter is pass "a","b" and "c" of "int "type.
  • In the if block we check the condition i.e if "b squared" minus 4ac is negative then it returns the false bool value otherwise it returns the true bool value.
  • In the main function we call the function "hasRealSolution " by passing three integer values into that function and store their value in variable "x" of the bool type.
  • Finally  we print the value x in the main function.

You might be interested in
What is a wiki farm?
bagirrra123 [75]

A wiki hosting service or wiki farm is a server or an array of servers that offer users tools to simplify the creation and development of individual, independent wikis.

4 0
3 years ago
................. are used to summarize data (option) (a) report (b) action ​
Tems11 [23]
I think it A I feel like report is right for the answer
5 0
3 years ago
Read 2 more answers
You complete your database, and the company begins using it. Shortly afterwards, two GearUp buyers, Cora and Owen, work together
Olegator [25]

Answer: Multi-user issue

Explanation: A database management system scheme can have multi-user issue when the designing of the system is not made properly. The multi user issue rises when the users concurrently access the data from the database and related error get invoked due to some reason like  repeatable reading issue, serialization, etc.

The reading problem is usually can be related to reading of the database in  uncommitted manner, uncommitted reading, repeatedly reading etc.Thus, Cora and Owen are accessing the database concurrently which can create multi-user issue.

3 0
2 years ago
Which of the following best describes the purpose of child labor laws?
BabaBlast [244]

Answer:

Are there supposed to be answer choices with this question?

Child labor laws are basically laws placing restrictions and regulations on the work of minors.

6 0
3 years ago
Read 2 more answers
ASAP!!!!****** Need help!!!!
m_a_m_a [10]
I think it's right. 
<span>Text, numbers, graphics, or sound represented by discrete digits, such as 1s and 0s.</span>
6 0
3 years ago
Other questions:
  • Jane is a postproduction crewmember for a film. Her responsibilities include arranging all the scenes that have been shot into t
    7·1 answer
  • How to remove a channel from favorite list on suddenlink?
    15·1 answer
  • Select all that apply.
    8·2 answers
  • A commercial depicts a teenager on a skateboard vandalizing a brick wall. This is an example of:
    11·2 answers
  • Baking Cookies. Sweet Dough Inc. bakes cookies—a popular dessert—based on the quantities ordered by their customers. Three raw m
    12·1 answer
  • Which statement is true about the purpose of a work in process constraint?
    15·1 answer
  • Yolanda first breaks down the whole game she needs to program into modules. She then breaks these modules into smaller modules u
    11·1 answer
  • Write a function named change() that has an integer parameter and six integers reference parameters named hundreds, fifties, twe
    7·1 answer
  • What are three coding languages that are used to build websites?
    12·1 answer
  • Edit the following statement so it uses the constant named YEAR:
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!