Calculate the surface area and volume of the sphere

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

Write a function which calculates the surface area and the volume of a sphere. The variables srface area and the volume should be pointer type. Once the radius of the sphere and other necessary variables are passed from the main function, the separate function you wrote should calculate the surface area and volume of the sphere. Finally  the surface area and the sphere should be printed onto the screen. The printing statements

should be done inside the main function.

Hint: surface area of a sphere = 4????2, volume of a sphere =

4

3

????3, also use a similar

approach as in the case of calculating the surface area and the circumference of a disc

given in Pointers lecture slides (slides #23 &24).

Reference no: EM131025189

Questions Cloud

What are the units of the rate constant : What is the average value of the rate constant calculated from the three data sets? What is the rate of disappearance of NO when [NO] = 0.0750 M and [O2] = 0.0100 M?
The excess of cash available over disbursements : Mosbey Inc. is working on its cash budget for June. The budgeted beginning cash balance is $31,000. Budgeted cash receipts total $183,000 and budgeted cash disbursements total $182,000.
How are these examples different from others : Since each pupa of morpho granadensis costs $4.15 and p pupae were received, 4.15p is the cost for the morpho granadensis species. Similarly, 1.50q is the cost of the battus polydamus species. From the third row of the table and the information in..
Functions passed along to susequent generations : Are inherited members and functions passed along to susequent generations? If Dog derives from Mammal, and Mammal derives from Animal, does Dog inherit Animal's functions and data?
Calculate the surface area and volume of the sphere : Calculate the surface area and volume of the sphere. Finally  the surface area and the sphere should be printed onto the screen. The printing statements
What will happen to the level of consumption : If there is a reduction in taxes, what will happen to the level of consumption and the level of saving in this economy, according to this model? Explain your answer
Show that a^-1 has all integer entries : Conversely, suppose A and A^-1 are both matrices with integer entries. Prove that D(A_1, A_2) = +/- 1.
Which of the following parameter passing mechanism : Which of the following parameter passing mechanism is/are supported by C++ but not in C? [A] Pass by value [B] Pass by reference
Write a class called adder that stores the sum : Write a class called  Adder that stores the sum of all the  ints given to it. Your  Adder class should allow you to write the following code (and code like it):

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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