To calculate a mortgage payment, what types would you use for the rate, principal, and payment? Explain why you selected each type
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:2| Question number:2.2
All Answers
total answers (1)
Rate: `
need an explanation for this answer? contact us directly to get an explanation for this answerfloat
`, principal: `long long
`, payment: `long long
`.The rate is usually a floating-point number with 4 significant digits. The principal and payment are integral usually less than 1 trillion.