Chat with us, powered by LiveChat The Apgar Medical group keeps a patient file | Writedemy

The Apgar Medical group keeps a patient file

The Apgar Medical group keeps a patient file

Question
4. The Apgar Medical group keeps a patient file for each doctor in the office. Each record contains the patient’s first and last name, home address, and birth year. The records are sorted in ascending birth year order. Two doctors, Dr. Best and Dr. Cushing, have formed a partnership.
(a) Design the logic that produces a merged list of patients’ names in ascending order by birth year.
(b) Modify the program so that it does not display patients’ name in ascending order by birth year.

5. The Martin Weight Loss Clinic maintains two patient files- one for male clients and one for female clients. Each record contains the name of a patient and current total weight loss in pounds. Each file is in descending weight loss order. Design the logic that merges the two files to produce one combined file in order by weight loss

6. (a) The Curl Up and Dye Beauty Salon maintains a master file that contains a
record for each of its clients. Fields in the master file include the client’s ID
number, first name, last name, and total amount spent this year. Every week, a
transaction file is produced. It contains a customer’s ID number, the service
received (for example, Manicure), and the price paid. Each file is sorted in ID
number order. Design the logic for a program that matches the master and
transaction file records and updates the total paid for each client by adding the
current week’s price paid to the cumulative total. Not all clients purchase
services each week. The output is the updated master file and an error report
that lists any transaction records for which no master record exists.
(b) Modify the program to output a coupon for a free haircut each time a client exceeds $750 in services. The coupon, which contains the client’s name and an appropriate congratulatory message, is output during the execution of the update program when a client total surpasses$750. Make sure that only one coupon is printed per client, even if the client purchased multiple services to pass the $750 cutoff value.

7 The Timely Talent Temporary Help Agency maintains an employee master file that contains employee ID number, last name, first name, address, and hourly rate for each of the temporary employees it sends out on assignments. The file has been sorted in employee ID number order. Each week, a transaction file is created with a job number, address, customer name, employee ID, and hours worked for every job filled by Timely Talent workers. The transaction file is also sorted in employee ID order.
(a) Design the logic for a program that matches the current week’s transaction file records to the master file and outputs one line for each transaction, indicating job number, employee ID number, hours worked, hourly rate, and gross pay. Assume that each temporary worker works at most one job per week. Output one line for each worker, even if the worker has completed no jobs during the current week.

Tutorials for this Question

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order