subject

(tco 4) given the following class definition and lines of code, what would be displayed if line 6 were replaced by the following? cout < < d2.getfeet() < < endl; class distance { private: int feet; double inches; public: distance( ); distance(int initft, double initin); void setfeet(int feetin); void setinches(double inchesin); int getfeet() const; double getinches( ) const; }; int main( ) { distance d1; //line 1 const int max = 100; //line 2 distance list[max]; //line 3 distance d2(1, 2.3); //line 4 distance * pdist; //line 5 d1.feet = 5; //line 6 // etc. – assume the remaining code is correct }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 13:30
To move an excel worksheet tab, simply right-click on it drag and drop it double-click on it delete it
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
question
Computers and Technology, 24.06.2019 18:10
Most information security incidents will occur because of select one: a. users who do not follow secure computing practices and procedures b. increases in hacker skills and capabilities c. poorly designed network protection software d. increasing sophistication of computer viruses and worms
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
You know the right answer?
(tco 4) given the following class definition and lines of code, what would be displayed if line 6 we...
Questions
question
Mathematics, 08.04.2021 21:40
question
Arts, 08.04.2021 21:40
question
Business, 08.04.2021 21:40
question
Mathematics, 08.04.2021 21:40
Questions on the website: 13722367