Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

=+ Review compensation issues related to equity and recruitment.

Answered: 1 week ago