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
devlian [24]
3 years ago
6

Consider the following C++ program in which the statements are in the incorrect order. Rearrange the statements so that itprompt

s the user to input the radius of a circle and outputs the area and circumference of the circle-#include {int.main()cout << "Enter the radius: ':cin >> radius;cout << endl;double radius;double area;using namespace std;return 0;cout << "Area = ' << area << endl;area - PI * radius * radius;
Computers and Technology
1 answer:
choli [55]3 years ago
8 0

Answer:

The correct program to this question can be given as:

Program:

//header file

#include<iostream> //include header file

using namespace std;

//main

int main() //defining method main

{

double radius,area=0; //defining variables

double PI=3.14; //defining variable PI and assign value

cout <<"Enter the radius: "; //message

cin >> radius; //input value by user

area = PI * radius * radius; //formula to calculate area

cout << "Area: "<< area << endl; //print area

return 0;

}

Output:

Enter the radius: 3.0

Area: 28.26

Explanation:

In the above program code, a header file is included. In the next line, the main method is defined, which contain three double type variable that is "radius, area, and PI".

  • The radius variable is used to take input by the user, and the area variable is to calculate the area of the circle, and the PI is used to hold a constant value, which is "3.14".
  • After taking user input in radius variable the area variable has used the formula of the circle, which calculates a value and in the last print, the function uses "cout", that prints area variable value.
You might be interested in
What does the Auto Fill tool do?
ki77a [65]
I believe this a microsoft tool it <span>It automatically populates data into cells that reference other cells :)

hope this helps</span>
7 0
4 years ago
Read 2 more answers
Help me with this please​
slava [35]
<h2>sorry...</h2>

I don't know the answer

3 0
3 years ago
Read 2 more answers
In the dental industry, light-activated adhesives have been used for decades to help adhere braces to teeth as well as being use
Bas_tet [7]

In the dental industry, light-activated adhesives have been used for decades to help adhere braces to teeth as well as being used in other dental procedures. These adhesives are one-part translucent polymers that cure and harden when exposed to specific light spectrum. Many of these took up to 30 seconds to cure. New technology brings LED blue light curing which uses blue LED with UV light to cure and harden a light-activated adhesive in 3-5 seconds. Which result below would NOT be an advantage of this new technology?<u> A)There is a higher up-front expense.</u> B)Could be used in other areas such as sealing cracked pipes. C)No filters or cooling fan required due to quick curing and low heat emission. D)There is a major time savings when using the faster high–intensity curing lights.

7 0
3 years ago
Read 2 more answers
The use of multiple _______ is sometimes called using a search phrase.
zysi [14]
Hello, thank you for your question.

The answer to your question, "<span>The use of multiple _______ is sometimes called using a search phrase.," would be:

Keywords</span>
4 0
3 years ago
Why does my internet keep disconnecting and reconnecting.
3241004551 [841]

Answer:

Hmm maybe because its failing?

Explanation:

i actually dont know but it happens to me sometimes

6 0
2 years ago
Other questions:
  • Write a program that generates a random number and asks the user to guess what the number is. If the user's guess is higher than
    6·1 answer
  • What will be the result of running the code below?
    5·1 answer
  • Which of the following is not a SQL*Loader file?
    11·1 answer
  • Explain the use of cache memory and the role it plays in improving processing speeds. Plz
    15·2 answers
  • Which of the following is time-dependant? Group of answer choices
    8·1 answer
  • If you face an investigation where dangerous substances might be around, you may need to obtain which of the following?
    13·2 answers
  • Complete the sentence.
    10·1 answer
  • CSS At-rules provide a way for designers to define "if this, then that" scenarios.
    8·1 answer
  • Who knows my cousin better?
    14·1 answer
  • The science of networking is attributed to which government's involvement?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!