Question: Please write code in C++ Problem 2: Write a program to compute the logarithm of any value to base 2. This program should also display

Please write code in C++ Please write code in C++ Problem 2: Write a program to compute

Problem 2: Write a program to compute the logarithm of any value to base 2. This program should also display the computed value with a sentence detailing the result. Use an input value of x=4.5; Hint: To compute the logarithm of x to base b, we can use the following relationship: log)(x) = loge(b) loge(x) Problem 3: Write a program to compute the average of age of a family of 5 people. (Ages are 6, 8. 14, 41, 44). Print the ages in separate line and contain a header (AGE). Also print the average age. Printed ages and average age should be separated by a dashed line ............-)

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!