Write a program that reads in the radius

Assignment Help C/C++ Programming
Reference no: EM132095275

Please expalin each line of code.

Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas:

1. Bottom area = Radius * Radius * 3.14

2. Cylinder Volume = Bottom Area * Length

3. Cylinder area = (2 * Radius * 3.14 * Length) + (2 * Bottom area)

Your program should prompt the user to enter the radius and length of a cylinder.

The program should output the length and radius of the cylinder along with the area and volume of the cylinder. Limit the output values to two decimal places.

Reference no: EM132095275

Questions Cloud

Receptive to organization development : What indicators would you use to determine that the organisation's culture is receptive to organization development?
Elicit feedback in order to evaluate a learning activity : Describe an instance where it is preferable to use verbal questioning to elicit feedback in order to evaluate a learning activity
Explain how this infinite while loop would operate in c : Please explain how this infinite while, for loop would operate in C, a simple flow diagram would also help.
Outline key provisions of work health and safety : Outline key provisions of Work Health and Safety legislation that have an impact on developing keyboard skills.
Write a program that reads in the radius : Write a program that reads in the radius and length of a cylinder and computes the area and volume.
Create a better culture of an organisation : Who are the people you would consult with or seek advice from to create a better culture of an organisation?
Define the concept of a schema : Define the concept of a schema, and specify how your specific DBMS implemented the schema.
Receptive to organization development : What indicators would you use to determine that the organisation's culture is receptive to organization development?
Focus groups and observation : What are some of the benefits of "soft" market research data gathered using techniques such as focus groups and observation? What are the benefits

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculate the total expences

Trying to fugure out how to enter a formula in a cell(d10) that multiplies 30 by the value in another cell (c27), then make the other cell (c27) an absolute cell reference in the formula. Copy the formula to cells d11:d13, and then calculate the t..

  Write a function called max consecutive integers

Write a function called max consecutive integers () that accepts a two-dimensional array of signed integers, the number of rows, the number of columns as input parameters.

  Calculations to assess the performance and position

Use the information from the above calculations to assess the performance and position of the company. State the limitations regarding ratio analysis as a means of analysing company accounts.

  Write a c program that reads in two sets of numbers a and b

Write a C program that reads in two sets of numbers A and B, and calculates and print their union (AυB) and intersection (A∩B). (AυB) is the set of elements that appear in either A or B, and thatA∩B is the set of elements that appear in both A and B...

  Demonstrate your code compiles and runs for a test case

Use a For loop to iterate through the array and input the values. Demonstrate your code compiles and runs for a test case of your choice.

  Implement the bounded stack with a concrete class

Using Eclipse, implement the bounded stack with a concrete class names

  Implementation of the fibonacci sequences

Provide the c++ implementation of the Fibonacci sequences. Please give the two approaches to the problem

  Implement a append function

Write and test the following function: void append(int a[], int m, int b[], int n); The function appends the first n elements of the array b onto the end of the first m elements of the array a.

  Write cpp program that will implement a breadth-first search

Write a C++ (or any other .net language) program that will implement a Breadth-First Search, a Depth-First Search, and an A* Search (using the number of misplaced tiles) to solve an 8-piece Slider Puzzle.

  The supply curve of a single firm under

The supply curve of a single firm under perfect competition is that portion of the MC curve above the minimum point of the AVC curve. How about the supply curve of the monopolist? Does the monopolist have a supply curve? Discuss

  Calculate the gpa of 5 courses

Write a C++ program to calculate the Gpa of 5 courses. When users enter the grades and credits of the courses from the keyboard, the program will calculates the GPA and displays it on the screen. Can you prepare this program in C++ language? Defin..

  Static field holds rent due date for an office

// static field holds rent due date for an office - // rents are due on the 1st

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd