Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started