Fill in Order Details

  • Submit paper details for free using our simple order form

Make Payment Securely

  • Add funds to your account. There are no upfront payments. The writer will only be paid once you have approved your paper

Writing Process

  • The best qualified expert writer is assigned to work on your order
  • Your paper is written to standard and delivered as per your instructions

Download your paper

  • Download the completed paper from your online account or your email
  • You can request a plagiarism and quality report along with your paper

hospital charges

This lab relates to the following Skill Outcomes:

  • Students will apply the steps in the program development process
  • Students will implement object-oriented programming through predefined classes
  • Students will develop graphical user interface applications using appropriate controls
  • Students will implement primitive data types for variables and fields
  • Students will implement the selection structure
  • Students will select appropriate arithmetic and relational operators
  • Students will analyze, design, implement, test, and debug domain-specific applications which demonstrate basic computation, input/output, control structures, operators, input validation, and methods

This lab covers material from Chapter 6 as well as concepts from previous chapters. The purpose of this lab is to demonstrate the use of methods and method calls to pass arguments and assign parameters as well as to prevent data conversion exceptions and implement appropriate input validation. PLEASE READ THE INSTRUCTIONS CAREFULLY AS ADDITIONAL REQUIREMENTS ARE INCLUDED BEYOND THE TEXTBOOK PROBLEM STATEMENT.

1. Complete Programming Problem #6, Hospital Charges, on page 392 of the textbook.

You MUST also include the ADDITIONAL REQUIREMENTS below:

  • Prevent data conversion errors for ALL input text boxes using the appropriate TryParse method. If a data conversion error occurs, be sure and display an appropriate error message to the user, set the focus back to the text box with the error, and either clear the text box or select all the data entered into it so that it can be replaced. Remember best practice is to group validation for a text box control so that the user may not move on to the next text box until the current text box value is valid.
  • Validate input accuracy for the number of days greater than zero (i.e., the patient must stay at least one day) while all other input values must be greater than or equal to zero (i.e., these are optional charges). If not, be sure and display an appropriate error message to the user, set the focus back to the text box with the invalid date, and either clear the text box or select all the data entered into it so that it can be replaced. Remember best practice is to group validation for a text box control so that the user may not move on to the next text box until the current text box value is valid.
  • Additional Details for Creating Methods on page 392 and an additional method:
    • CalcStayCharges – should receive one argument representing the value of number of days and then calculates and returns the base charges for the hospital stay. This is computed as $350 times the number of days in the hospital (hint: avoid stale data by simply returning the results of the calculation). The return value should be assigned to a local variable in the Calculate button event handler and then displayed.
    • CalcMiscCharges – should receive four arguments representing the values of medication charges, amount of surgical charges, amount of lab fees, and physical rehabilitation charges and then calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges (hint: avoid stale data by simply returning the results of the calculation). The return value should be assigned to a local variable in the Calculate button event handler and then displayed.
    • CalcTotalCharges – should receive two arguments representing the value of the base charges for the hospital and the total of the miscellaneous charges (i.e., total of the medication, surgical, lab, and physical rehabilitation charges – hint: avoid stale data by simply returning the results of the calculation). The return value can either be assigned to a local variable in the Calculate button event handler and then displayed OR it can be returned and displayed directly in the output statement.
    • DisplayMembershipLevel – The hospital offers future discounts based upon membership level. Membership level is based upon total charges. The DisplayMembershipLevel method should receive one argument representing the value of total charges and determine the membership level based upon the following criteria:
      • Bronze – total charges between $1.00 and $999.99
      • Silver – total charges between $1,000.00 and $1499.99
      • Gold – total charges between $1500.00 and $1999.99
      • Platinum – total charges greater than or equal to $2000.00
    • The method should then return the value of the membership level as a string (i.e., “Bronze”, “Silver”, “Gold”, “Platinum”) and can either be assigned to a local variable in the Calculate button event handler and then displayed OR it can be returned and displayed directly in the output statement.
  • The design of the form is up to you, but must include the following controls:
    • Appropriately named text boxes for all input requirements with descriptive labels informing the user what to enter
    • Appropriately named output labels with currency formatting for the following:
      • Hospital Stay Charges
      • Miscellaneous Charges
      • Total Charges
    • Calculate button, with appropriate name and keyboard access key, which processes the input and output (assign to AcceptButton property)
    • Clear button, with appropriate name and keyboard access key, that will clear ALL the controls on the form (i.e., text boxes and output labels) and sets the focus to the first input text box (assign to CancelButton property)
    • Exit button, with appropriate name and keyboard access key, which closes the program

The program MUST include standard features of a Windows application including:

  • Change the default Text property of the form to something descriptive
  • Appropriate naming conventions for all controls (i.e., buttons, labels, text boxes, list)
  • Calculate, Clear, and Exit buttons with appropriate name and standard keyboard access key
  • AcceptButton and CancelButton properties should be appropriately assigned to the Calculate button and Clear button, respectively
  • Ensure tab order for form is logical
  • Appropriate naming conventions and data type declarations for variables and named constants
  • Remove all unused event handlers from the program code

2. Name your project using the naming convention provided in the syllabus: CourseNumber_LastNameFirstInitial_LabXX (e.g., 3333_SharpJ_Lab06)

3. Include the appropriate identification information per the course syllabus using comment statments at the top of your project code (see p. 102, 2.8 Comments, Blank Lines, and Indentation): Name, 9-Digit ID, Due Date, Date Submitted, and Brief Description of Program.

4. You will need to zip/compress the project folder using an appropriate zip/compression utility such as the one found in the Windows or WinZip, etc. Please DO NOT submit .rar (archive) files.

5. Attach and submit the zipped/compressed project folder file under the Lab 06 link under Assessments in the Chapter 6 Module.

6. See Revised Form based on Additional Requirements below. A PDF document with sample input-output is attached:

lab06HospitalCharges.JPG

WHAT OUR CURRENT CUSTOMERS SAY

  • Google
  • Sitejabber
  • Trustpilot
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!

ORDER NOW


Consider Your Assignments Done

“All my friends and I are getting help from eliteacademicresearch. It’s every college student’s best kept secret!”

Jermaine Byrant
BSN

“I was apprehensive at first. But I must say it was a great experience and well worth the price. I got an A!”

Nicole Johnson
Finance & Economics

Our Top Experts

See Why Our Clients Hire Us Again And Again!


OVER

10.3k
Reviews

RATING
4.89/5
Average

YEARS
13
Mastery

Success Guarantee

When you order form the best, some of your greatest problems as a student are solved!

Reliable

Professional

Affordable

Quick

Using this writing service is legal and is not prohibited by any law, university or college policies. Services of Elite Academic Research are provided for research and study purposes only with the intent to help students improve their writing and academic experience. We do not condone or encourage cheating, academic dishonesty, or any form of plagiarism. Our original, plagiarism-free, zero-AI expert samples should only be used as references. It is your responsibility to cite any outside sources appropriately. This service will be useful for students looking for quick, reliable, and efficient online class-help on a variety of topics.