Study the scenario and complete the question(s) that follow: creen Baby Life Baby Life is a newly founded public clinic.

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

Study the scenario and complete the question(s) that follow: creen Baby Life Baby Life is a newly founded public clinic.

Post by answerhappygod »

Study The Scenario And Complete The Question S That Follow Creen Baby Life Baby Life Is A Newly Founded Public Clinic 1
Study The Scenario And Complete The Question S That Follow Creen Baby Life Baby Life Is A Newly Founded Public Clinic 1 (153.37 KiB) Viewed 35 times
Study the scenario and complete the question(s) that follow: creen Baby Life Baby Life is a newly founded public clinic. They receive at least 40 maternity patients each day. They have approached you as a C++ programmer to help them develop a program they can use to enter patient details. Use this information to answer the following questions. Source: Gaddis, T. 2018. Staring out with C++ - From control structures through objects. Pearson. [Accessed: 14 June 2021]. Question 5 Create a C++ program that displays a menu to the user. The menu should have three options, namely (1) save patient details, (2) display patient details and (3) for exiting the program. The program should make use of two functions, addPatient () to add patient details. Use an array to store patient details. Then the second function is displayPatient () which should display the patient details. Ensure that both functions give an option to either add or display the number of patients to be added or displayed (see Figure 1 below). Also, ensure that the program repeatedly shows the list of options until the point when option 3 is selected, which terminates the program. Figure 1 below shows how the program should operate: Welcome to Baby Life. Please select an option: (1) Add Patient (2) Display Patient (3) Exit 1 Enter number of patients you are adding: 2 Enter Patient Name: Daniella Enter Contact number: 0451278856 Enter Patient Name: Nthabiseng Enter Contact number: 0452140035 Patients successfully added! Welcome to Baby Life. Please select an option: (1) Add Patient (2) Display Patient (3) Exit 2 Enter number of patients would like to view: 2 Daniella 451278856 Nthabiseng 452140035 Patients successfully displayed! Welcome to Baby Life. Please select an option: (1) Add Patient (2) Display Patient (3) Exit Figure 1: Baby Life program in operation (20 Marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply