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
Delvig [45]
3 years ago
11

Write a Program thatask the User to input the Radius and Length ofa Cylinder.

Computers and Technology
1 answer:
AveGali [126]3 years ago
4 0

Answer:

#include <iostream>

using namespace std;

int main() {

   float radius,length,vol,area;//flioat variables to hold radius,length,volume and area.

   cout<<"Enter the radius and length of the cylinder respectively"<<endl;

   cin>>radius>>length;//taking input of radius and length..

   vol=3.14*radius*radius*length;//calculating volume..

   radius=radius*12;//converting radius from feet to inches..

   length=length*12;//converting area from feet to inches..

   area=2*3.14*radius*(length+radius);//calculating area..

   cout<<"Volume in cubic feet is ="<<vol<<endl<<"Area in square inches is ="<<area<<endl;//printing the output..

return 0;

}

Output:-

Enter the radius and length of the cylinder respectively

5 2

Volume in cubic feet is =157

Area in square inches is =31651.2

Explanation:

In the program above I have taken four float variables for storing radius,length,volume and surface area of the cylinder.Then calculating the volume and after that converting radius and length to inches and after that calculating area in square inches.

You might be interested in
What is the meaning of HDMI?
tiny-mole [99]

Hey there!

The correct answer is that it stands for high definition video devices.



hope this helped and have a great day (:

3 0
3 years ago
Read 2 more answers
Why do you think there is a cross and a tick on these Logo designs below? Explain your answer below.
IrinaK [193]

Explanation:

because of the visual appearance

7 0
3 years ago
Which statement, if any, about Boolean is false?
Vladimir79 [104]

Answer:

A.

Explanation:

7 0
3 years ago
You want to select the minimum windows server 2012 edition to support the required roles and hardware. which edition should you
nirvana33 [79]

Edition should you install <u>essentials edition.</u>

<u></u>

<h3>What are the two editions of Windows Server?</h3>

Microsoft has proposed Standard and Datacenter editions of its Windows Server operating systems for several years, which continued with Windows Server 2022.

<h3>What is Windows Server Edition?</h3>

Microsoft Windows Server OS (operating system) is a series of enterprise-class server operating systems created to share services with multiple users and provide extensive managerial control of data storage, applications and corporate networks.

To learn more about Workspace Essentials, refer

brainly.com/question/12578161

#SPJ4

8 0
1 year ago
Write a program that gets five integer test scores from the user, calculates their average, and prints it on the screen. Test yo
Alex

Answer:

total = 0

for i in range(5):

   score = int(input("Enter a score: "))

   total += score

average = total / 5

print("The average is " + str(average))

Explanation:

*The code is in Python.

Initialize the total as 0

Create a for loop that iterates five times. Inside the loop, ask the user to enter a score. Add the score to the total (cumulative sum)

After the loop, calculate the average, divide the total by 5

Print the average

5 0
3 years ago
Other questions:
  • In which of the following locations can you edit all of the Properties of a PowerPoint file?
    11·1 answer
  • 1. The best program to present numerical data in would be ____. a. Access c. PowerPoint b. Excel d. Word
    6·1 answer
  • What is a network of high-capacity communication links is the internet?
    8·1 answer
  • How much time does a gold chest take to open
    11·1 answer
  • Create a class 'ProblemSolution' with following characteristics A public method 'solution' without parameters and return type is
    14·1 answer
  • Initialize the tuple team_names with the strings 'Rockets', 'Raptors', 'Warriors', and 'Celtics' (The top-4 2018 NBA teams at th
    9·1 answer
  • Why might a business choose a server-based network over a peer-to-peer network?
    15·1 answer
  • Distinguish between a computer drive and computer driver​
    6·1 answer
  • What command will prevent all unencrypted passwords from displaying in plain text in a configuration file?.
    9·1 answer
  • find_cow(name, cows) Given a name and a Python list of Cow objects, return the Cow object with the specified name. If no such Co
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!