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
Tamara is writing a program to organize students in a class and needs to use operators to organize student grades, then compare
VMariaS [17]

Answer:   you said "Tamara needs to use

operators to organize the students' grades, then

operators to compare the results."

i think your right

Explanation:

sounds right.

3 0
3 years ago
Which statement will remove 5:'softball' from the dictionary?
dimaraw [331]

Answer:

sports.pop(5)

Explanation:

edg 2020

4 0
3 years ago
Read 2 more answers
Which of the following is the estimate of the minimum amount of time it would take to perform a task? (Points : 2) Minimal durat
kondor19780726 [428]

Answer:

Optimistic duration

Explanation:

The following three concepts are Project management concepts:

Optismitic duration: Estimation of the shortest duration of a task, taking into account the difficulty, etc.

Pessimistic duration: Estamation of the longest duration of a task, taking into account the difficulty, etc

Expected duration: Expected duration of a task, kind of a compromise between the optmistic duration and the pessimistic duration.

Which of the following is the estimate of the minimum amount of time it would take to perform a task?

The answer is Optimistic duration

7 0
3 years ago
Using the Internet, search and discuss why naming conventions are important and why programmers should consistently follow them.
LiRa [457]

Answer:

Answered below

Explanation:

Some variable naming conventions include;

1) Variable should begin with either a letter or an underscore.

2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.

3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.

4) variable names are case-sensitive.

The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.

7 0
3 years ago
Write a program 10 enter 3 number and find smallest.​
timama [110]

10 + 3 = 13

13 - 10 = 3

5 0
2 years ago
Other questions:
  • What is a way to minimize technical problems with computer
    13·1 answer
  • Write a program to read data from a file named problem 2. ext. This file has three exams data (floating point data) in three col
    11·1 answer
  • So, I have strict parents &amp; need help, if u don’t know how to fix this after u read it, leave. I don’t want u getting points
    11·2 answers
  • PLEASE HELP! I'm offering brainliest!
    6·1 answer
  • Choose the best answer from the drop-down menu. A ______ allows multiple connections to a single signal. Without a ______, conne
    7·2 answers
  • . Write at least three benefits of using a network.​
    8·1 answer
  • An instruction for the computer. Many commands put together to
    5·1 answer
  • Which of the following is not a common input device?
    6·1 answer
  • File names should be limited to 144 characters.<br><br> true or false
    12·1 answer
  • Operating systems move code and data, as necessary, to a portion of the disk that is used as if it were memory, not just disk st
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!