Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Code Only. Pseudocode must be prior to the code using /* */ Part A: A class memberType. Each object of memberType can hold the

C++ Code Only. Pseudocode must be prior to the code using /* */

Part A:

A class memberType.

  1. Each object of memberType can hold the name of a person, member ID, number of books bought, and amount spent.
  2. Include the member function to perform the various operations on the objects of memberType--for example, modify, set, and show a person's name. Similarly, update, modify, and show the number of books bought and the amount spent.
  3. Add the appropriate constructors.
  4. Put the definitions of the member functions of memberType.
  5. Put a program to test various operations of your class memberType.
  6. Your main and your class should be in separate inline files (.cpp and .h).

Part B:

Program a class that will determine the monthly payment on a home mortgage. The monthly payment with interest compounded monthly can be calculated as follows:

Payment = Loan * (Rate/12) * Term / Term -1

Where

Term = (1 + Rate/12)12 * Years

Payment = the monthly payment

Loan = the dollar amount of the loan

Rate = the annual interest rate

Years = the number of years of the loan

The class should have member functions for setting the loan amount, interest rate, and number of years of the loan. It should also have member functions for returning the monthly payment amount and the total amount paid to the bank at the end of the loan period. Implement the class in a complete program. Do not accept negative numbers for any of the loan values. Your class should be in a separate file (.h) from your main function

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

Students also viewed these Programming questions

Question

=+State some limitations of national income accounting.

Answered: 1 week ago