Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

New research has show the current version of the dog - to 1 . Update the 'human human year equation. you will need to convert

New research has show the current version of the dog-to1. Update the 'human human year equation.
you will need to convert the calculation below to work in C++
]=[16ln(dogAge)+31
do not change any data types (yet)
Hint: see Appendix 4 in your text for the C++ version of the logarithm function.
2. Test your changes by using the following inputs:
TEST 1:
dog Age =4
dog Name = spot
what is your output?
TEST 2:
dog Age =4.0
dog Name = spot
what is your output?
3. Change the variable types of both dogAg and humanAge to double and repeat step 2. do the outputs match? if not, why?
5. Submit your program when instructed.
image text in transcribed

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

ISBN: 321321367, 978-0321321367

More Books

Students also viewed these Databases questions