Question: C++ D Your submission TypesValuesArith Ops_avg_two 1 Upload assignment Upload Submissions Submit Instructions Tests Most recent submission Write a program that asks for five numbers

 C++ D Your submission TypesValuesArith Ops_avg_two 1 Upload assignment Upload Submissions

C++

D Your submission TypesValuesArith Ops_avg_two 1 Upload assignment Upload Submissions Submit Instructions Tests Most recent submission Write a program that asks for five numbers and prints out their harmonic mean. The harmonic mean is "the reciprocal of the arithmetic mean of the reciprocals", or more clearly written as H = n/(1/x_1) + 1/X_2 + ... + 1/x_n) For example if the input is 1 2 3 4 5, the output must be 2.18978. The prompt must be "Enter 5 numbers: Sample output: Enter 5 numbers: 1 2 3 4 5 2.18978 Submit file name: harmonicmean.cpp Close TypesValuesArithOps_harmon_mean5 You haven't uploaded any code yet Upload assignment

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!