Question: c++ Programming Exercise 4.4 Division With Whole Numbers Purpose. Learn how to handle math division when the numerator and denominator are both whole numbers. Requirements.

 c++ Programming Exercise 4.4 Division With Whole Numbers Purpose. Learn how

c++

Programming Exercise 4.4 Division With Whole Numbers Purpose. Learn how to handle math division when the numerator and denominator are both whole numbers. Requirements. Write averageAge.cpp as a modification of chapter 3's "Average Age" sample program. The chapter 3 sample program Average Age found the average of 19, 21, and 30 to be 23. Is should be 234/3 instead. Select any one of the variations of the solution to this chapter 3 sample program, and modify it to output the average with two decimal digits (that is, 23.33). Do not solve the problem by using floating point variables to store the three ages. Use this as a starting point: #include using namespace std; int main() { int agel = 19; int age2 = 21; int age3 = 30; YOU COMPLETE THIS PART } Program 1/0. Input: 3 programmer-specified inputs (three ages as specified above) Output: The average age, rounded to two decimal digits. Example The average of three ages is 23.33

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!