Earn Higher Grades With Instant Assignment Help.Ask Question!

Android Programming
(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.
Attachments:
(5/5)

Related Questions

CSI 1420 Introduction to C Programming & 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 majorconstructs of the C programming language – Fu

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 Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
660 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
765 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
602 Answers Hire Me