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

  Write a java program that inserts 25 random integers

Write a Java program that inserts 25 random integers ranging from 0 to 100 into an ArrayList in ascending order. The program should then output the numbers and display the sum and average of the numbers.

  Assignment in python

You will complete this assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this site: https://www.python.org/downloads/.

  Declare a string variable named empty

Declare a string variable named empty, and initialize it to the empty string.

  Develop a use case model

Selecting a Design for the Presentation

  Create a simple 2d predator-prey simulation.

The goal for this programming project is to create a simple 2D predator-prey simulation. In this simulation the prey are ants and the predators are doodlebugs. These critters live in a world composed of a 20x20 grid of cells.

  What is the purpose of public , protected keywords in java

What is the purpose of public , protected keywords in java?

  Modify the book class to accommodate multiple authors

modify the Book class to accommodate multiple authors using one of the components from the Java Collection Framework.

  Convert the while loop in the following code segment

Convert the while loop in the following code segment to a do-while loop

  Write various bindings to determine semantics

Write the various bindings that are required to determine the semantics when statement is executed. For each binding, indicate binding time used for language. Describe your answer.

  Write a java program that asks the user for his/her gender

According to researchers at Stanford Medical School, the ideal weight for a woman is found by multiplying her height in inches by 3.5 and subtracting 108.

  Create a class to represent a rectangle

Create a class to represent a Rectangle. Your class should contain instance variables for length and width, as well as member method to calculate the area and perimeter

  Java code with the concept of cryptograms

How to create a java code with the concept of cryptograms? if the text is long then how to use the frequency of occurrence of each character?

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