First display the smallest volume and then the largest volum

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

Consider that you are building 5 cylindrical nuclear reactors of various diameters. Ask the user to input height and diameter of each cylinder. Find the volume of each cylinder. Then ask the user whether he/she wants to sort those values in ascending order or descending order. Based on the answer, display the two volumes: Biggest and Smallest of five volumes. If it's ascending order, first display the smallest volume and then the largest volume.

Volume of a cylinder = ?r2h

 

Reference no: EM13162488

Questions Cloud

Setting of monetary policy : The various financial indicators suggest that this setting of monetary policy is exerting a degree of restraint on the economy and the high exchange rate and subdued consumer spending are putting downward pressure on some prices, although increases ..
Design a simple atm service kiosk : Design a simple ATM service kiosk. This kiosk supports the following options for its menu: 1. Viewing your account balance2. Depositing cash3. Withdrawing cash
Describe how to prepare 1l of a buffer : Explain how to prepare 1L of a buffer at pH 7.4 using 1M hypochlorous acid (Ka = 3.5 x 10-8) and a 1 M NaOH solution.
Determine the optimal size of the shopping center : Determine the optimal size of the shopping center (to the nearest 100 square meters) based on existing estimates of the demand for retail space.
First display the smallest volume and then the largest volum : first display the smallest volume and then the largest volume.
Compute the equilibrium constant kc for the reaction : Analysis shows that there are 1.8 moles of H2, 7.45e-05 moles of S2, and 7.2 moles of H2S present in a 50.8 L flask at equilibrium. Calculate the equilibrium constant Kc for the reaction.
C program to solve the quadratic equation of rocket launch : Write a C program to solve the quadratic equation of rocket launch by computing the roots (t1 and t2) of that quadratic equation: gt2 + vt + l = 0 (or) for simplicity ax2 + bx + c = 0. Get the values of g, v, and l from the user. The program should d..
Compute the partial pressure of no : At equilibrium the total pressure was 1.00 atm and the NOCl prssure was 0.27 atm. 2NOCl(g) &hArr 2NO(g) + Cl2(g) Calculate the partial pressure of NO and Cl2 in the system
State what is the partial pressure of ibr at equilibrium : What is the partial pressure of Br2 at equilibrium? What is the partial pressure of I2 at equilibrium? What is the partial pressure of IBr at equilibrium?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Use c-strings without using the c-string library

write a program that implementd and test the following functions for use C-strings without using the c-string libaray  ( that is, you re NOT ALLOWED to use #include in this   program):

  C program to solve the quadratic equation of rocket launch

Write a C program to solve the quadratic equation of rocket launch by computing the roots (t1 and t2) of that quadratic equation: gt2 + vt + l = 0 (or) for simplicity ax2 + bx + c = 0. Get the values of g, v, and l from the user. The program should d..

  Const int num_years

How do you get this program to get both player input and then display results(As described on bottom) #include  const int NUM_YEARS=15;//The number of years const int NAME_SIZE=32;//The max size of the player name string

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Write a function to arrange 10 numbers stored in an arraye

Writ a funtion to arrange 10 numbers stored in an array forom the largest to the smallest and pass the results to main program.

  An integer on this system is 4 bytes long

Assume the following for the program below. An integer on this system is 4 bytes long. The memory address where the array "a[]" was created begins at location 8000. a. #include

  Program to produce ten random permutations of numbers

In C++(must be able to compile in Visual Studio ): Write a program to produce ten random permutations of numbers 1 to 10.

  Create a template class

Create a template class, SVector, that implements a constructor

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  Design a nested program

How many levels of nesting are there in this design?

  In psuedocode, design an application

In psuedocode, design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

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