logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Create a mobile application that calculates the total cost of a hospital stay. The daily base charge is GHC 500. The hospital also charges for medication, surgical fees, lab fees, and physical rehab.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

SET UP INSTRUCTIONS:

  • Let the name of the application start with “FE-” followed by your ID (e.g. FE- 208IT01002674)
  • Let the package name be your LAST NAME and the LAST FOUR DIGIT of your ID (e.g. com)
  • Create a Text Icon with the initials “HC” as the app icon
  • Provide comments in your XML layout file and the java code (the main class file) before the package name indicating your Full Name and ID

MARKS ALLOCATION

Programming and implementation of Logic       

User Interface Design             

Functionality (the app running as expected) 

Creativity        

QUESTION

Hospital Charges

Create a mobile application that calculates the total cost of a hospital stay. The daily base charge is GHC 500. The hospital also charges for medication, surgical fees, lab fees, and physical rehab.

The application should accept the following input:

 

  • The details of patient (name, age, gender, address)
  • The number of days spent in the hospital
  • The amount of medication charges
  • The amount of surgical charges
  • The amount of lab fees
  • The amount of physical rehabilitation charges

 

Create an application that will generate the receipt for the customer based on the services rendered to the customer. This should be sent to the customer via an email with the subject “HOSPITAL BILL”.

 

User Interface

Let the user interface be divided into the following sections with their respective components. (You can use multiple user interface if necessary)

 

Section Name ComponentsInputs Description
Details [EditText]editName [EditText]editAddress [EditText]editAge[RadioGroup] radioGender Name of the Patient Address of the Patient Age of the PatientGender of the patient
Services [EditText]editDays [EditText]editMedication [EditText]editSurgical [EditText]editLab [EditText]editRehab The number of days spent in the hospital The amount of medication chargesThe amount of surgical charges The amount of lab feesThe amount of physical rehabilitation charges
  Outputs  
Summary [TextView]viewReport Displays all services rendered with their respective cost and the total cost in a receiptformat.
  Operations  
  [Button]btnCalculate A button when click will display the outputs in the summary section
  [Button]btnClear A button when click will clear everything in all sections
  [Button]btnSend A button when click will send the receipt asan email to the customer.

PROGRAMMING STRUCTURE OF THE APPLICATION

The codes should have comments at the beginning bearing your full Name and ID, and date.

The application should have the following value-returning methods:

•   CalcStayCharges—Calculates and returns the base charges for the hospital stay. This is computed as GHC500 times the number of days in the hospital.

  • CalcMiscCharges—Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation
  • CalcTotalCharges—Calculates and returns the total charges.
(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

753 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

760 Answers

Hire Me
expert
Husnain SaeedComputer science

687 Answers

Hire Me
expert
Atharva PatilComputer science

847 Answers

Hire Me