Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me with the following short simple questions , i have included some resource after the thirf picture. The following program intends to read

please help me with the following short simple questions , i have included some resource after the thirf picture.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
The following program intends to read in 10 integers from the user and output their average: \#include using namespace std; double average(int list[], int size) \{ int sum =0; for (int i=0; ii++) sum += list[i]; return double(sum)/size; int main() \{ double* p1; int numbers [10]; cout "Enter 10 integers:"; for (int i=0;i thinclude "Circle.h" using namespace std; int main() 1 Circle "pCircle1 = new Circle[3]; for ( int i=0;isetRadius (10(i+1)) : Utmissing line 2 : b. limissing line 1: (pCircle1ti)->setRadius(10"i): Bjmissing line 2: (oCirele1+1)->getRadius ( setRadius (10(i+1)) : fimissing line 2 : pCircle1[->getRadius 0 end: e. fimissing line 1 : ( (ipCircle 1+1)). setRadius (10(1+1)) : Jomissing line 2 : cc("(pCircle1+i)) getPadius() cc endl; \#ifndef CIRCLE_H \#define CIRCLE_H class Circle \{ public: Circle(); Circle(); //Destructor Circle(double); double getArea() const; double getRadius() const; void setRadius(double); static int getNumberofobjects(); private: double radius; static int numberofobjects; \}; \#endif

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

The state mutt iel ia bonds for? Fiound to the nearest cent ]

Answered: 1 week ago

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago