Write a program that calculates circumference and area, C/C++ Programming

Write a program called A1Q3, that reads it the radius of a circle as an integer and prints the circle's diameter, circumference and area.  Use a constant value for pi.  Do all calculations in the output statements.  The output should be in a table format using a tab escape code to align columns.  What happens when the user enters a radius as a real number?

Here is a sample run:

What is the radius: 4 

Diameter:     12.5664

Circumference: 25.1327

Area:      50.2654

Posted Date: 3/8/2013 6:05:08 AM | Location : United States







Related Discussions:- Write a program that calculates circumference and area, Assignment Help, Ask Question on Write a program that calculates circumference and area, Get Answer, Expert's Help, Write a program that calculates circumference and area Discussions

Write discussion on Write a program that calculates circumference and area
Your posts are moderated
Related Questions
Using a Friend Using a friend function is quite easy. The following example explains a friend function to access members of two classes. class Bclass;

First line starts with T, number of test cases. Each test case T contains a necklace (N).

Project Description: We want an EXPERT CODER to help us create an 'audio engine' in C#. We want to be able to specify an input of a wave/MP3 file, and have the engine manipul

what is oops

want the codings for these topic in ur experts minds.com

Write a program to print a digital clock which displays the time for 2 hours .

Create a program that asks the user for two integers which represent the numerator and denominator parts of fraction. Print out a simplification of the fraction. Example: Enter th

#write a multilevel c++ program to take marks of 3 subjects and calculate percentage and display it

Can you think of a condition where your program would crash without attaining the breakpoint that you set at the starting of main()? A: C++ let for dynamic initialization of glo

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci