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
tekilochka [14]
3 years ago
7

Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: Diameter (2

× radius) Circumference (diameter × π) Surface area (4 × π × radius × radius) Volume (4/3 × π × radius × radius × radius)
Computers and Technology
1 answer:
SashulF [63]3 years ago
8 0

Answer:

#include<iostream>

using namespace std;

int main(){

   float radius;

   cout<<"Enter the radius of the sphere: ";

   cin>>radius;

   float diameter = 2*radius;

   float circumference = diameter * 3.14;

   float surface_area = 4*3.14*radius*radius;

   float volume = (4/3)*3.14*radius*radius*radius;

   cout<<"The diameter is: "<<diameter<<endl;

   cout<<"The circumference is: "<<circumference<<endl;

   cout<<"The surface area is: "<<surface_area<<endl;

   cout<<"The volume is: "<<volume<<endl;

}

Explanation:

First include the library iostream for input/output in c++ programming.

then, create the main function and declare the variable radius as floating type.

Use cout to print the message on the screen.

Use cin to store the value in the variable.

After that, write the formula to calculate the values and store the results in the variables.

and finally print the result with message.

You might be interested in
Is it possible to have a deadlock involving only oneprocess? Explain your answer.
Aleonysh [2.5K]

Answer:

Hi!

It is not possible to have a deadlock involving only one process.

Explanation:

Deadlock is only possible if there are multiple processes trying to access the same shared resources. Another way to see it is if you have shared resources only can be a deadlock if multiple processes attempt to use it.

With only one process, you can use shared resources without the risk of fall into deadlock, but you don't have concurrence either.

4 0
4 years ago
Many mobile computers and mobile devices use LCD monitors. What does LCD stand for?
erica [24]
Liquid crystal display
4 0
3 years ago
A technician has connected a laptop to a television via HDMI cable. The entire display cannot be seen on the television. Which o
Slav-nsk [51]

Answer: B) Resolution

Explanation:

 Resolution is the method that monitor the size and sharpness the image according to the display of the television.

By using resolution the number of individual pixels express according to the terms of horizontal and vertical axis.

The high resolution only depends upon the computer display and the physical ability in which the light focus in particular direction. There are basically two types of resolution that are :

  • Special resolution
  • Ordinary resolution

7 0
3 years ago
Read 2 more answers
A variable of type unsigned short stores a value of 0. If the variable value is incremented, what exception will occur?A. No exc
yulyashka [42]

There are different kinds of variable. The answers are below;

  • If the variable value is incremented, therefore, No <u>exception </u>will occur.
  •  If the variable value is incremented, An <u>Overflow </u>will occur
  • If the variable value is decremented no exception will occur.

<h3>What is Underflow?</h3>

Underflow is a known to be a process or exception that happens if a number calculation is too small to be shown by the CPU or memory.

what causes a overflow is the Adding to a variable when its value is at the upper end of the datatype range.

Learn more about variables from

brainly.com/question/24751617

3 0
3 years ago
Select the statements that are true regarding the future of technology. Select 2 options.
nata0808 [166]

Answer:

  • Quantum computers are currently being built by Google and IBM, and will be available to the public in 2021.
  • Biocomputing can involve the use of biological components, like DNA, to store and process data.

Explanation:

Quantum computers make use of quantum processes like superposition to perform computation which make them exponentially faster and more powerful than normal classic computers.

Leading the way to develop quantum computers that will be available to the public are Google and IBM with IBM having confirmed in September 2020 that they already have a 65 qubits quantum computer which should be public by 2021.

Biocomputing is also another exciting future prospect in computer technology. It involves the use of biological components like DNA and proteins to store and process data. It is believed that with further work in this field, biocomputers will be able to perform computations many times faster than the traditional computer.

4 0
4 years ago
Other questions:
  • Assume the availability of a function called printStars. The function receives an integer value as an argument. If the argument
    8·1 answer
  • True or false? risk assessment should cover personnel, as well as technical support such as firewalls, secure operating systems
    13·1 answer
  • Use ___________ positioning to configure the location of an element to remain the same and to not move even when the web page is
    6·2 answers
  • Your mom wants to start using some type of cloud storage so that she can access
    15·1 answer
  • A teacher wants a program to give extra points to students who fail a test. Write a Python program to do the following: (a) Ask
    5·1 answer
  • Which of the following refers to a descriptive technique involving the systematic collection of quantitative​ information? A. Lo
    5·1 answer
  • PLEASEEE HELPPP
    7·1 answer
  • Finish the program to compute how many gallons of paint are needed to cover the given square feet of walls. Assume 1 gallon can
    9·1 answer
  • When using the protection options in Excel 2016, what does the Protect Workbook function do?
    8·2 answers
  • SOMEONE PLEASE HELP!! i’ll give brainliest
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!