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

Define the Modulo Division Operator in c language? The C provides one more arithmetic operator % called as modulo division operator and this operator yields the remainder of an

A company needs 200 pencils per year . you cannot simply use this price as the cost of pencils two years from now. Because of inflation the cost is likely to be higher than it is

Project Description: I will need a tutor that would help me out in Data Structure and learning Algorithm more at the mathematical/algorithmic level. The book is written by "by T

#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by

Define a function in c program: int f1() { static int x=10; return x; } int f2() { int y=5; return y; } extern int z; void f()     {

A: A smart pointer is a C++ class which mimics a regular pointer in syntax and some semantics, however it does more. Since smart pointers to distinct types of objects tend to have

Define the Assignment Operators in c language? The assignment operators can be used to assign a value to the variable and is represented by equal to (=) sign. The Assignment ex

What does ODBC do in context with PHP? PHP supports many databases such as dBase, Microsoft SQL Server, Oracle, etc. however, it also supports databases such as filePro, FrontB

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