Write all data from the parallel arrays

Assignment Help JAVA Programming
Reference no: EM131482972

1. In this phase of the project, you are to add a user defined class. All arrays, counts and methods are to be members of this new class.

Therefore, you will NOT pass any data to any methods anymore.

2. Add code to the Modify_patient method

In this method you are to first print another menu something like the following:

Patient Modification Menu

1. Add Patient

2. Delete Patient

3. Modify Patient

When the user picks menu option #1, prompt for new Patient information and store it in the parallel arrays

When the user picks menu option #2, prompt for the Patient number, search the arrays for the Patient and delete the Patient from the arrays

When the user picks menu option #3:prompt the user for the Patient number, search the arrays for the Patient number

You will then ask which of the items below to change

First Name

Last Name

Age

Gender

Read in the new data to the item selected from the above list

3. Add code to the Modify_doctor method

In this method you will allow the user to add a new Doctor to the proper parallel arrays

4. Add code to the Modify_surgery method

In this method you will allow the user to add a new Surgery to the proper parallel arrays

5. Add code to the Exit_hospital method

This method will write all data from the parallel arrays back to the three data files Patientj.dat, doctorj.dat and surgeryj.dat. Therefore, if the user entered new data in one of the sets of parallel arrays, it will be written back to the data files. Then, the next time the program would run, the new data would be read in.

Create a word document and type your name and data at the top. Next copy your code to the document. Copy screen shots of various sections of your code running, including the reports (after new data has been added). Upload the document to Blackboard

Reference no: EM131482972

Questions Cloud

Describe the tragedy of the commons : Describe the tragedy of the commons. Give some examples. How might this tragedy be avoided?
Company after-tax cost of debt : What is the cost of common equity financing? What is the investor's rate of return?
What would be the impact if minimum wages were structured : Professor Donald Boudreaux wrote (Wall Street Journal, 8/23/06, p. A11), that "There are heaps of bad arguments for raising the minimum wage.
Calculate the accumulated depreciation over four years : DaySpring has a tax rate of 30%. The asset is sold at the end of year 4 for $13133. Calculate the accumulated depreciation over four years.
Write all data from the parallel arrays : Write all data from the parallel arrays back to the three data files.
Theoretical spot rates appropriate : In What is the price of the bond using theoretical spot rates appropriate for each coupon and principal?
Do you think business cycle has bigger impact on automobile : Do you think the business cycle has a bigger impact on automobile and capital goods manufacturers or on grocery stores?
Discuss challenges that the professional may experience : Assessment - Grief and Loss Discussion Paper. Outline and discuss some of the challenges that the professional may experience working with these clients.
What may be happening in the aggregate : Each individual has a sense of how the macroeconomy is doing. Is it a mistake to extrapolate from one's own experience what may be happening in the aggregate?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd