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
lakkis [162]
3 years ago
6

C++ CODE

Computers and Technology
1 answer:
cestrela7 [59]3 years ago
7 0

Answer:

#include <iostream>

#include <cmath>

#include <iomanip>

using namespace std;

int main()

{

   const double PI = 3.14159;

   double height;

   double radius;

   

   cout << "Enter the height of the cylinder: ";

   cin >> height;

   cout << "Enter the radius of the base of the cylinder: ";

   cin >> radius;

   cout << endl;

   cout << "Volume of the cylinder = " << setprecision(4) << PI * pow(radius, 2.0) * height << endl;

   cout << "Surface area: " << setprecision(4) << 2 * PI * radius * height + 2 * PI * pow(radius, 2.0) << endl;

   cout << endl;

   return 0;

}

Explanation:

Code is rearranged so that;

- Variables are defined,

- <em>height</em> and <em>radius</em> of the cylinder is asked from the user,

- The <u>volume</u> and <u>surface area</u> of the cylinder are calculated and printed. (<u>setprecision(4)</u> is used to print two decimal values)

You might be interested in
George has to develop a website for his dad’s cycle shop. He wants to focus mainly on the products and wants the website to have
irakobra [83]

Answer:

The correct answer is letter "D": George should only add images that will highlight the products.

Explanation:

Grid formats are web pages designs that instead of portraying information display pictures arranged three by three (3x3) or four by three (4x3) grids so the web page user can select one of the images that is of interest and after clicking on it details of that subject will be on the screen.

In that case, as George is using a grid format for his father's shop website, he should only add images that after been clicked will bring u the content of the corresponding product.

3 0
3 years ago
Using computers can lead to a number of physical safety issues. State and explain TWO(2) of these types of issues.​​​​​
Ira Lisetskai [31]

The types of issues that is seen are:

  • Electrocution
  • Fire
  • Tripping over wires and others.

<h3>What is the physical safety about?</h3>

There are a lot of of physical safety issues that can come up from using ICT devices.

A fire outbreak can occur if there is an issue with the wiring of the computer system or when there is too much voltage supplied and this is therefore a type of physical safety issues in the computer room.

Note that Electrocution is said to be the death or bad injury that is known to be caused as a result of an electric shock from electric current that tends to pass through the body.

Hence, The types of issues that is seen are:

  • Electrocution
  • Fire
  • Tripping over wires and others.

Learn more about Electrocution from

brainly.com/question/1810934

#SPJ1

6 0
2 years ago
The older computer had a CPU that ran at 266MHz compared to a current CPU that runs 3.7GHz. How many times faster is the new CPU
sergij07 [2.7K]

Answer:

Number of times new computer faster than old computer = 13.90 times (Approx)

Explanation:

Given:

Clock speed of old computer = 266 MHz

Clock speed of new computer = 3.7 GHz

266MHz = 0.266GHz

Find:

Number of times new computer faster than old computer

Computation:

Number of times new computer faster than old computer = Clock speed of new computer / Clock speed of old computer

Number of times new computer faster than old computer = 3.7 / 266

Number of times new computer faster than old computer = 3.7 / 0.266

Number of times new computer faster than old computer = 13.90 times (Approx)

3 0
3 years ago
When Tim Berners-Lee developed the first specifications, protocols, and tools for the World Wide Web in 1993, his employers at C
Svetllana [295]

Answer:

c.

Explanation:

People trust open-source software - if they can see how it works and understand it, they can help improve it and build applications using it. If these protocols were not publicly available - then nobody would have implemented services using them - so nobody would be adopting it.

8 0
4 years ago
Many shops are simply plugging up their drains to keep from inadvertently violating the law and creating environmental contamina
barxatty [35]

the answer is true hope this helps have a wonderful day/night

8 0
3 years ago
Other questions:
  • What does ADSL stand for?
    6·2 answers
  • While traveling in India, Sabina notes all of her daily expenses in rupees in her spreadsheet. At the end of the day, she wants
    8·1 answer
  • The _______ is the continuing development of the internet that allows everyday objects embedded with electronic devices to send
    11·1 answer
  • The problem with the media giving equal air time to those who are __________ about the effects of media violence on violent beha
    9·1 answer
  • When discussing the data-modeling building blocks, anything (a person, a place, a thing, or an event) about which data are to be
    15·1 answer
  • In 1913, __________ developed a mass production system for cars that made it possible to produce more cars in a shorter period o
    5·2 answers
  • Which of the following statements is false? Group of answer choices A subclass is often smaller than its superclass. A superclas
    12·1 answer
  • Budget at completion<br><br> What does this measurement tell you?
    8·1 answer
  • Help Me<br><br> What are the four types of graphic models?
    10·1 answer
  • What’s your tiktok? if u have one
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!