Displays the charges for a patients hospital stay

Assignment Help Python Programming
Reference no: EM131145226

Python

Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask patient name and if the patient was admitted as an in-patient or an out-patient.

If the patient was an in-patient the following data should be entered:

- The number of days spent in the hospital

- The daily rate

- Charges for hospital services (lab tests, etc.)

- Hospital medication charges.

If the patient was an out-patient the following data should be entered:

- Charges for hospital services (lab tests, etc.)

- Hospital medication charges. Use a single, separate function to validate that no input is less than zero.

If it is, it should be re-entered before being returned. Once the required data has been input and validated, the program should use two functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out- patient data.

Both functions should return the total charges. Once this is verified and calculated, make a report by having the following information stored in a file. patient Name, In-patient or out-patient, Number of days spent in the hospital,etc Sample output into a file: Patient Name: Mike Navaro Inpatient or outpatient: In-patient Days spent in the hospital: 3 The daily rate : $1000 Charges for hospital services (lab tests, etc.): $2000 Hospital medication charges: $200 Total charges will be : $5200

Reference no: EM131145226

Questions Cloud

Relationship between diversity-media and communication : In your own words What do you think is the relationship between diversity, the media, and communication? How can these three interconnected areas enhance the workplace, in your opinion?
Complete the table indicating whether each item : Complete the table indicating whether each item (1) affects operating (O) activities, investing (I) activities, financing (F) activities, or is a noncash (NC) transaction reported in a separate schedule; and (2) represents a cash inflow or cash outfl..
How charity navigator got started : You have probably watched the video on how Charity Navigator got started, and here is a follow-on article detailing its inception Question Everything Please go back and select one of the five nonprofit's you listed in Topic 1.
Describe a transaction that would benefit all three citizens : If the cost of the fireworks display is divided equally among the citizens, will a majority vote be in favor of the display?
Displays the charges for a patients hospital stay : Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask patient name and if the patient was admitted as an in-patient or an out-patient.
Which type of the four leadership styles : little more info, the path-goal theory says that leaders behave in four ways. The Directive leader pretty much does what the title says. They direct their employees by showing them what is expected of them, guiding them through it and giving them wor..
Write an essay on corporate governance policy of nbad : Write an essay on Corporate Governance Policy of NBAD in approx 400 Words. Difference in methodology adoption of corporate governance.
Compute and interpret the machine’s cp : Consider a machine that fills soda bottles. The process has a mean of 15.9 ounces and a standard deviation of 0.06 ounces.  The specification limits are set between 15.8 and 16.2 ounces. a) Compute and interpret the machine’s Cp b) Compute and interp..
Design an incentive system to generate efficient questioning : In the absence of participation incentives, will a confused student ask a question when it would be socially efficient to do so?

Reviews

Write a Review

Python Programming Questions & Answers

  You will define an operation on positive integers called

you will define an operation on positive integers called twiddle which consists of summing the squares of the digits of

  When we sort a list of items, we need a basis

When we sort a list of items, we need a basis on which to compare the items to see whether one is bigger than another. If it's a list of numbers, Python just compares the numeric values; if it's a list of strings, Python compares the strings alpha..

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Create an inheritance relationship between two classes

For this assignment you will create a simple class hierarchy. You will create an inheritance relationship between two classes -- a Friend class and a Person class - Friend will inherit Person

  Write an expression that concatenates the string

Write an expression that concatenates the String variable suffix onto the end of the String variable prefix .

  Permutation ciphers

Permutation Ciphers (a.k.a. Transposition Ciphers) are another class of simple cryptosystems. For this we use the functions apply(.,.) and inv(.) from Homework 4; copy these two functions into your le as auxiliary functions.

  Implement a simplified version of ssl

COMP 4337/9337 - Securing Wireless Networks - Implementation Assignment - Implement a simplified version of SSL/TLS (miniSSL) and a sim-plified application-layer protocol (miniGet) in this project.

  Write a program that opens an encrypted file

Write a second program that opens an encrypted file and display its decrypted contents on the screen.

  Calculate the average monthly private employment

Since the transition from one term to another occurs partway through January, the last year listed for any president is the same as the first year of the next president. Calculate the average monthly private employment for each political party.

  In this assignment you will write a program that does

in this assignment you will write a program that does simple packet routing. your program will take three command-line

  Look up terms in a tech dictionary

Create a program that allows a user to look up terms in a tech dictionary - programming or scripting that is of interest to you, and complete one or more web-based tutorials on the topic.

  Part-1for task 1 list the things you changed and the

part-1for task 1 list the things you changed and the purpose of changing it. good reasons include making code easier

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