Answer to Question #155110 in C++ for usama Zafar khan

Question #155110


Suppose you own a hospital, and you have 30 doctors appointed in the hospital. You need to maintain the record of all the registered doctors and display their data when required. Create a structure Doctor, containing registration number (int), name (char []), address(nested), date of joining(nested) as structure members. Write a program that accomplish the following tasks


1.      Main function should ask the user to enter id and password to proceed further.


2.      Main function should display a menu either to enter the record or display the record. Program should call the function according to user’s choice.


3.      If user chooses to enter the record, program should store the data in a structure array of 30 members. Program should ask the user if he wants to enter the next record.


4.      If user chooses to display the record and there is record present, program should display the list of record (in ascending order of date of joining), if there is no record present then it should display a message of “no record found”.


5.      Record displayed by point number 4 should be sorted in descending order of date of joining of doctors by using a sort function.


1
Expert's answer
2021-01-12T04:47:24-0500
Dear usama Zafar khan , your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog