Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ 10-13 In this exercise, you will design the class memberType. Each object of memberType can hold the name of a person, member ID, number

C++ 10-13

In this exercise, you will design the 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 functions to perform the various operations on the objects of memberTypefor example, modify, set, and show a persons name. Similarly, up-date, modify, and show the number of books bought and the amount spent.
  3. Add the appropriate constructors.
  4. Write the definitions of the member functions of memberType.
  5. Write a program to test various operations of your class memberType.

image text in transcribedimage text in transcribedimage text in transcribed

here are the copy of codes.

#include

#include

#include

#include "memberType.h"

using namespace std;

int main()

{

// Write your main here.

return 0;

}

memberData.txt.

4 10 John Williams 0 0 20 Lisa Berry 2 35.50 30 Ron Brown 10 255.68 40 Jessey Smith 0 0

Instructions In this exercise, you will design the class member Type 1. Each object of member Type can hold the name of a person, member ID, number of books bought, and amount spent 2. Include the member functions to perform the various operations on the objects of member Type -for example, modify, set, and show a person's name. Similarly, up-date, modify, and show the number of books bought and the amount spent. 3. Add the appropriate constructors. 4. Write the definitions of the member functions of memberType. 5. Write a program to test various operations of your class member Type memberData.txt memberTypelmp.c... + main.cpp memberType.h 1 #include 2 #include 3 #include 4 #include "memberType.h" 5 6 using namespace std; 7 8 int main() 10 // Write your main here. 11 return 0; 12] 13 main.cpp memberType.h memberData.txt memberTypelmp.c... + . 14 2 10 3 John Williams 4 5 6 20 7 Lisa Berry 8 2 9 35.50 10 30 11 Ron Brown 12 10 13 255.68 14 40 15 Jessey Smith 16 0 17 0 18

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

Students also viewed these Databases questions

Question

5. Our efficiency focus eliminates free time for fresh thinking.

Answered: 1 week ago