Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE READ I'm in a beginning class and we're just starting to learn how to make simple C++ programs using Putty. I need help doing

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

PLEASE READ I'm in a beginning class and we're just starting to learn how to make simple C++ programs using Putty. I need help doing problems and fully understanding how to do them so that I can do others like them on my own. I've included an example of one solution to a different problem shared in lecture here to show what solutions should ook a bit like: #include //for cn, cout using namespace std; int main() //declare variables double radius: //radius of circle double area; //area of circle double circumference: //circumference of circle int iArea; //area rounded to the nearest integer int iCir; //circumference rounded he nearest nteger const double PI3.14159: //the pi value //get the radius of a circle cout radius //calculate the area & circumefrence area PIradius radius: circumference2PIradius; iArea (int) (area 0.5): //area in double is rounded to the nearest integer iCir-(int) (circumference 0.5): //circumference in double is rounded to the nearest integer //output the information cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

Understand the difference between ongoing and one-time income

Answered: 1 week ago