CIS 315 - Project 3 Project Objective: This project is designed to give the student practice in the implementation of a program that demonstrates an understanding of classes and methods in Java....

Code Attached


CIS 315 - Project 3 Project Objective: This project is designed to give the student practice in the implementation of a program that demonstrates an understanding of classes and methods in Java. Problem Description: Use Java techniques to write an application program for the following. Lab Testing Application A lab testing clinic needs an application to manage their customers and their payments. *You can give an appropriate name for the clinic. Your application must include the following. ➔ Ask the user the number of customers whose details needs to be added to the system. ➔ The user must then be prompted to enter the name and the department in which the lab test will be carried out in. The clinic consists of the following departments. Each department is identified by a number followed by its name. 1. Microbiology 2. Virology 3. Hematology 4. Parasitology Lab Testing Departments https://www.ncbi.nlm.nih.gov/books/NBK535358/ ➔ A unique customer number is created by the application. It is created by using the department number (1 – 4) followed by a 5-digit number. Example: Microbiology = 1 5-digit number = 10001 Unique customer number = 110001 *The 5-digit number can begin with a number of your choosing and will increment automatically in the application, based on the number of customers. ➔ Each lab test costs $ 120.00. ➔ The customers should be able to view their balance and pay the amount owed. ➔ To see the status of the customer, we should be able to see their name, ID, lab tests, and balance displayed by the application. https://www.ncbi.nlm.nih.gov/books/NBK535358/ You will need two Java classes for this. 1. CustomerLabTesting class ➔ This class will contain the main method. ➔ It will prompt for user input for the number of customers that needs to be added. Then, create n number of new customers. ➔ Iterate through the number of customers. o Create a Customer object. o Call the addLabTest method for the customer object. o Call the payBalance method for the customer object. o Display all the details using the toString method for the customer object. 2. Customer class Private fields will include: Customer first name, last name, lab test category number, lab test description, customer ID, balance, cost of a lab test (which is $ 120), and customer ID = 1000. Constructor: Prompt the user to enter customer first name, last name and department number. Call setCustomerID method here. Methods in the Customer class: Generate Customer ID private String setCustomerID() { Increment customer ID by 1 // Department number + ID } Add the lab tests and finding the amount to be paid by the customer. public void addLabTest() { // Loop to add the lab tests (Q to quit). // Every time a lab test is added the balance to be paid by the customer must increase. balance = balance + cost of a lab test // Display the balance. } View the balance public void viewBalance() { // display the balance } Pay the balance public void payBalance() { // view the balance to be paid // prompt and get user input for the payment. balance = balance – payment Display the amount paid by the customer. Call the viewBalance method to show the remaining amount to be paid (if any) by the customer. } Show the information public String toString() { return the name of customer (first name and last name), customer ID, department number, the lab tests, balance. } Example tab tests to test your application with: Blood Test - Complete Blood Count, also known as a CBC, is the most common blood test performed. Cultures - used to test for diagnosis and treatment of infections. Hemoglobin A1C - used to diagnose and monitor diabetes. Liver Panel - is a combination of tests used to assess liver function and establish the possible presence of liver tumors. Lipid Panel - a group of tests used to evaluate cardiac risk. It includes cholesterol and triglyceride levels. Common Lab Tests https://www.martinhealth.org/common-lab-tests-mhs https://www.martinhealth.org/common-lab-tests-mhs
Dec 08, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here