Write a C++ program that creates a class Mathematician with the data members such as name, address, id, years_of_experie

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C++ program that creates a class Mathematician with the data members such as name, address, id, years_of_experie

Post by answerhappygod »

Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 1
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 1 (154.05 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 2
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 2 (117.57 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 3
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 3 (131.79 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 4
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 4 (129.57 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 5
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 5 (109.2 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 6
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 6 (110.89 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 7
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 7 (103.3 KiB) Viewed 34 times
write a C++ code
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 8
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 8 (147.14 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 9
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 9 (126.48 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 10
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 10 (91.51 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 11
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 11 (119.87 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 12
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 12 (109.73 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 13
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 13 (98.16 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 14
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 14 (19.17 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 15
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 15 (19.17 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 16
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 16 (19.17 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 17
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 17 (19.17 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 18
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 18 (19.17 KiB) Viewed 34 times
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 19
Write A C Program That Creates A Class Mathematician With The Data Members Such As Name Address Id Years Of Experie 19 (19.17 KiB) Viewed 34 times
Write a C++ program that creates a class Mathematician with the data members such as name, address, id, years_of_experience and degree and create an array of objects for this class. Include public member functions to i) Input() - This function should read the details of an array of Mathematicians by passing array of objects and array size (n) ii) Display() - This function should display either the details of an array of Mathematicians or a Mathematician with highest experience by passing array of objects, array size (n) and user's cho 2) as the argument to this function. Note:- Write the main function to Create an array of objects of Mathematician based on the user's choice (get value for the local variable 'n' and decide the size of the array of objects) Input details into the array of objects. Finally, either display the complete set of Mathematician details or display the details of Mathematician with highest years of experience based on the user's choice. (1-display the complete set of Mathematician details) or (2-display Mathematician with highest experience details only) You may decide the type of the member data as per the requirements. Output is case sensitive. Therefore, it should be produced as per the sample test case representations.

case sensitive. Therefore, it should be produced as per the sample test case representations. hoice should be positive only. Choice should be either 1 or 2. Otherwise, print "Invalid". es test cases in order to understand the inputs and outputs better the comments are given inside a particular notation (.....). When you are inputting get only appropriate values to the nding attributes and ignore the comments .......) section. In the similar way, while printing output please print the appropriate values of the corresponding attributes and ignore the comments tion. Test cases:- 2 (no of Mathematician details is to be entered) ne) address) Fience) gree) (name)

136 (id) 8 (experience) PhD (degree) Mani (name) Bihar (address) 137 (id) 11 (experience) PhD (degree) 2 (Choice to print Mathematician with highest experience) output-Mani (name) Bihar (address) 137 (id) 11 (experience) PhD (degree) grade reduction=15%

case=two input= -3 (no of Mathematician details is to be entered) output=Invalid grade reduction=15% case=three input= 3 (no of Mathematician details is to be entered) Rajesh (name) Pollachi (address) 125 (id) 10 (experience) PhD (degree) Pandiyaraj (name) Tirupathi (address) 126 (id) 8 (experience)

case=three input= 3 (no of Mathematician details is to be entered) Rajesh(name) Pollachi (address) 125 (id) 10 (experience) PhD (degree) Pandiyaraj (name) Tirupathi (address) 126 (id) 8 (experience) PhD (degree) Manivel (name) Bihar (address) 127 (id)

8 (experience) PhD (degree) Manivel (name) Bihar (address) 127 (id) 11 (experience) PhD (degree) 3 (Wrong choice) output Invalid grade reduction=15% case-four input= 2 (no of Mathematician details is to be entered) Rajedran (name)

Tirupathi (address) 200 (id) 8 (experience) MSc (degree) 1 (Choice to print all Mathematician details in the given order) output=Rajedran (name) Pollachi (address) 100 (id) 10 (experience) PhD (degree) Pandey (name) Tirupathi (address) 200 (id) 8 (experience) MSc (degree)

Write a C++ program that creates a class Mathematician with the data members such as name, address, id, years_of_experience and degree and create an array of objects for this class. Include public member functions to i) Input() - This function should read the details of an array of Mathematicians by passing array of objects and array size (n) ii) Display() - This function should display either the details of an array of Mathematicians or a Mathematician with highest experience by passing array of objects, array size (n) and user's choice 2) as the argument to this function. Note:- Write the main function to Create an array of objects of Mathematician based on the user's choice (get value for the local variable 'n' and decide the size of the array of objects) Input details into the array of objects. Finally, either display the complete set of Mathematician details or display the details of Mathematician with highest years of experience based on the user's choice. (1-display the complete set of Mathematician details) or (2-display Mathematician with highest experience details only) You may decide the type of the member data as per the requirements.

ut is case sensitive. Therefore, it should be produced as per the sample test case representations. d choice should be positive only. Choice should be either 1 or 2. Otherwise, print "Invalid". mples test cases in order to understand the inputs and outputs better the comments are given inside a particular notation (.....). When you are inputting get only appropriate values to the sponding attributes and ignore the comments (.....) section. In the similar way, while printing output please print the appropriate values of the corresponding attributes and ignore the comments section. le Test cases:- one 3 (no of Mathematician details is to be entered) name) hi (address) ) perience) egree) an (name) hi (address)

Pandiyan (name) Tirupathi (address) 136 (id) 8 (experience) PhD (degree) Mani (name) Bihar (address) 137 (id) 11 (experience) PhD (degree) 2 (Choice to print Mathematician with highest experience) output-Mani (name) Bihar (address) 137 (id) 11 (experience) PhD (degree) grade reduction=15%

case=two input= -3 (no of Mathematician details is to be entered) output Invalid grade reduction=15% case=three input= 3 (no of Mathematician details is to be entered) Rajesh(name) Pollachi (address) 125 (id) 10 (experience) PhD (degree) Pandiyaraj (name) Tirupathi (address) 126 (id) 8 (experience) PhD (degree) MAY PC D ↑ Q

PhD (degree) Manivel (name) Bihar (address) 127 (id) 11 (experience) PhD (degree) 3 (Wrong choice) output=Invalid grade reduction=15% case-four input= 2 (no of Mathematician details is to be entered) Rajedran (name) Pollachi (address) 100 (id) 10 (experience) PhD (degree)

PhD (degree) Pandey (name) Tirupathi (address) 200 (id) 8 (experience) MSc (degree) 1 (Choice to print all Mathematician details in the given order) output=Rajedran (name) Pollachi (address) 100 (id) 10 (experience) PhD (degree) Pandey (name) Tirupathi (address) 200 (id) 8 (experience) MSc (degree)

8 (experience) MSc (degree) 1 (Choice to print all Mathematician details in the given order) output=Rajedran (name) Pollachi (address) 100 (id) 10 (experience) PhD (degree) Pandey (name) Tirupathi (address) 200 (id) 8 (experience) MSc (degree) grade reduction=15%
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply