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
Andrew [12]
4 years ago
10

NOTE: in mathematics, the square root of a negative number is not real; in C++ therefore, passing such a value to the square roo

t function is an error. Given a double variable named areaOfSquare write the necessary code to read in a value, the area of some square, into areaOfSquare and print out the length of the side of that square. HOWEVER: if any value read in is not valid input, just print the message "INVALID".
Computers and Technology
1 answer:
blagie [28]4 years ago
3 0

Answer:

1 #include <iostream>

2 #include <cstring>

3 #include <cmath>

4  

5 #include <iomanip>

6  

7 using namespace std;

8  

9 int main () {

10  double areaOfSquare;

11  

12 cin >> areaOfSquare;

13  

14  if(areaOfSquare >= 0)

15    {

16    sqrt(areaOfSquare);

17    cout << areaOfSquare << endl;

18    }

19  else

20    {

21    cout << "INVALID" << endl;  

22    }

23  

24  

25 }

You might be interested in
In what way is your social media footprint related to your digital ID
ANEK [815]
Your social media footprint is literally your digital ID. Your digital ID is what you are online and your footprint is what you do.
3 0
4 years ago
Which one of following is an example of a formatted number using the Currency option?
scoundrel [369]
C.) $7,778.92 is an example of a formatted number using the Currency option.

$ - is a currency symbol of the United States Dollars
, - is a currency symbol that separates whole numbers into group of 3 digits.
. - is a currency symbol that separates the whole amount from the centavos amount
7 0
4 years ago
The data _____ component of a database management system (DBMS) is used to create and maintain the data dictionary. manipulation
Ira Lisetskai [31]

Answer:

definition

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.

Hence, the data definition component of a database management system (DBMS) is used to create and maintain the data dictionary.

6 0
3 years ago
A disadvantage of using hydroelectric power is:
siniylev [52]
Hydroelectric power doesn't pollute water or add anything to it,
it doesn't use wind for its operation, and it doesn't emit anything
into the air.   It does, however, disrupt the river ecosystem.
3 0
4 years ago
Which situation is an example of? "relational context" in the transactional model of? communication?
Jlenok [28]
An example I believe of relational context is when I was out with my son on the weekend (he has a developmental disability) and we had agree I would buy him a 1/2 sub sandwich the day before but then he said I would like a McFlurry so I said okay and then he said so you mean I can have a McFlurry and a sub and I thought oh oh I stuck my foot in it so I said but it must be only a 1/2 sub so he said no I want a full sub then and no mcflurry so I agreed so from the original 1/2 sub idea the idea evolved to a full sub which was affected by the warm sunny summery weather in the afternoon and seeing people lined up at ice cream shops so the idea developed in relation to the weather, how hungry he was and the social aspect people buying ice cream.
8 0
3 years ago
Other questions:
  • Elsa has collated information for a meeting using Excel. Due to certain developments, some of the data in her worksheet is now r
    6·1 answer
  • In java, c or c++ code, when a number begins with a leading 0, what do you know about that number: (example: int zzz = 012;) in
    13·1 answer
  • Write the name of the tab, command group, and icon that is used to create multilevel lists.
    12·1 answer
  • Draw a flowchart to accept two numbers, and then output the result as the first number
    11·1 answer
  • What is considered to be the core of the Unix operating system ?
    14·1 answer
  • Natalie is a secretary and must complete a large amount of filing this afternoon. At 1:00 PM, the office receptionist gets sick
    10·1 answer
  • Explain why an organization's firewall should block outgoing packets the source addresses of which are not in the organization's
    10·1 answer
  • What are interpersonal skills for non-technical user
    14·1 answer
  • 5. Played electronically by manipulating images on a television screen produced by a
    15·1 answer
  • Question 4 (5 points) If your social media accounts are___________, college admissions representatives can look at your social m
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!