Write a program to generate a patient bill

Assignment Help Programming Languages
Reference no: EM131009226

PROJECT OBJECTIVES

After completing this project, you should be able to:

Write programs in Visual Basic while being guided by the six steps of the program development cycle: analyze the problem, design a solution, choose the interface, write code, test and debug your solution, and document code.

Write Visual Basic programs that use the If and Select decision-making blocks.

Develop Visual Basic applications that incorporate "conditional" or True/False statements that "steer" the decision or data flow of the application.

PROJECT DESCRIPTION
The Programming Project provides you with a chance to develop and display your computer programming skills using Visual Basic. The project consists of four (4) programming problems based on programming projects in your textbook. For each problem you will apply the six steps of the program development cycle and submit a document detailing your work as well as the Visual Basic code you write.

PROJECT DELIVERABLES
Guided by the six steps of the program development cycle, please complete each of the following four (4) programming problems. For each problem, submit a document detailing your performance of the following four tasks:

Analyze the problem (step 1) and design a solution (step 2).
Choose the user interface (step 3) and code the application (step 4). This task also requires you to submit your Visual Basic code along with the document. Follow the same procedure used for submitting your programming assignments.
Test the developed application (step 5).
Document the designed application (step 6).

The document you submit, along with your Visual Basic code, should be approximately 1½-2 pages (375-600 words). Feel free to create diagrams within your document.

Programming Problem 1: Medical Rentals for Patients
(Note: Programming Problem 1 is a modified version of Chapter 4, Programming Project 1, page 161.)

Nutritional Associates of New Jersey offers a rental service for patients of the practice. Full day rentals cost one-and-a-half times half-day rentals. Write a program that displays the information provided in Table 1 below in a list box when an appropriate button is clicked on and displays a bill in another list box based on the item number and time period chosen by a patient. The bill should include a $30.00 deposit. A sample copy is displayed in Figure 4.58 of the Visual Basic text. (Important: Figure 4.58 reflects the original data from Table 4.11, not the modified data in Table 1 below.)

Table 1. Nutritional Associates of New Jersey Device Rentals
Piece of Equipment
Half Day
Full Day
Blood pressure monitor
$16.00
$24.00
Heart rate monitor
$12.00
$18.00
Daily activity monitor
$20.00
$30.00

Programming Problem 2: Billing Report
(Note: Programming Problem 2 is a modified version of Chapter 4, Programming Project 5, pages 162-163.)

Nutritional Associates of New Jersey is in need of a brief billing report for patients. Write a program to generate a patient bill from the patient billing items found in Table 2 below. Use the form in Figure 4.62 of the Visual Basic text as a model, and write the program so that each group box is invisible and becomes visible only when its corresponding check box is checked. After the button is clicked, the amount of the bill should be calculated.

Note: The Checked property of the first radio button in each group should be set to True in its Properties window. This guarantees that a selection is made in each visible group box. Of course when the bill is calculated, only the visible group boxes should be considered; see Figure 4.63 in the Visual Basic text.

Table 2. Nutritional Associates of New Jersey Billing Report Items
Blood work
Nutritional Evaluation
Nutritional Journals
Basic panel ($79.99)

Bronze ($199.99)
Food intake journals ($9.99)
Basic panel + advanced cholesterol testing ($129.99)

Silver ($299.99)
Food intake and activity journal ($14.99)
Basic panel + advanced cholesterol testing + advanced sugar testing ($179.99)

Gold ($399.99)

Basic panel + advanced cholesterol testing + advanced sugar testing + vitamin absorption testing ($229.99)

Programming Problem 3: Supply Orders
(Note: Programming Problem 3 is a modified version of Chapter 5, Programming Project 3, page 219.)

Nutritional Associates of New Jersey needs to place purchase orders for all rental equipment and all patient journals. The medical supply vendor provides the following equipment to Nutritional Associates:

Blood pressure monitor kits @ $129.00
Heart monitor kits @ $95.00
Activity monitor @ $109.00
Food intake journal @ $4.99
Food intake and activity journal @ $9.99

All items purchased by Nutritional Associates of New Jersey are charged a 7% sales tax rate.

Write a program to create an invoice to the supplier for individual patient supply orders (see Figure 5.40 in the Visual Basic text for a model). After the user enters the data on the left side of Figure 5.40, the user can display an invoice in a list box by pressing the Process Order button. The user can click the Clear Order Form button to clear all text boxes and the list box, and can click on the Quit button to exit the program. The invoice number consists of the capital letters "NA" followed by a "-" and then the capitalized first two letters of the customer's last name followed by the last four digits of the zip code. The customer name is input with the last name first, followed by a comma, a space, and then the first name. However, the name is displayed in the invoice in the proper order. Take note of the data entry box for City, State, Zip. The user will enter the city name, followed by a comma, the state name, followed by a comma, and finally the zip code. The generation of the invoice number and the reordering of the first and last names should be carried out by Function procedures. The invoice should include the following: Nutritional Associates of NJ (Patient Name: first last) as the name header.

Programming Problem 4: Caffeine Absorption
(Note: Programming Problem 4 draws directly on Chapter 6, Programming Project 1, page 263.)

Nutritional Associates of New Jersey stresses to their patients the effects of caffeine on the body. After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks an 8-oz cup of brewed coffee containing 130 mg of caffeine, and the caffeine is absorbed immediately into the body. Write a program to compute the following values. See Figure 6.64 in the Visual Basic text.

The number of hours required until 65 mg (one-half the original amount) remain in the body.
The amount of caffeine in the body 24 hours after the person drinks the coffee.

Suppose the person drinks a cup of coffee at 7:00 a.m. and then drinks a cup of coffee at the end of each hour until 7:00 a.m. the next day. How much caffeine will be in the body at the end of the 24 hours?

Reference no: EM131009226

Questions Cloud

Explanatory variables in the regression : How many dummy variables would be needed as explanatory variables in the regression? Suppose that se = 4.217 bushels per acre, as in the text analysis of five varieties. With so much more data, are the Tukey and Bonferroni confidence intervals for ..
What types of strategies they using to reach target market : What types of strategies are they using to reach this target market, and what strategies can you recommend in the future? In the interest of maintaining diversity within the discussion forum, please select a company that has not yet been discussed b..
Explanatory variables to predict costs : A modeler has constructed a multiple regression with k = 10 explanatory variables to predict costs to her firm of providing health care to its employees. To de- cide which of the 10 explanatory variables is statistically significant, she rejects H..
Find the distance of the given point from the given line : Find the distance of the point (1,2,3) from the line x=y=z. Find the distance between the lines x-1=2y=z and x=-t+3y, y=3t, z=5.
Write a program to generate a patient bill : Write programs in Visual Basic while being guided by the six steps of the program development cycle: analyze the problem, design a solution, choose the interface, write code, test and debug your solution, and document code.
Lowest yield and the process with the highest yield : A research chemist uses the following laboratory procedure. He considers the yield of 12 processes that produce synthetic yarn. He then conducts the two-sample t-test with a = 0.05 between the process with the lowest yield and the process with the ..
Find the dimensions that maximize the printed area : A poster of area 24,000 cm2 has blank margins of width 10 cm on the top and bottom and 6 cm on the sides. Find the dimensions that maximize the printed area.
How is underapplied overhead eliminated : How is underapplied overhead eliminated? A.If small amount=debit cost of goods sold and credit manufacturing overhead if large amount=apportion and close work in process, finished goods and cost of goods sold
Conditions of the mrm and the f-test : Suppose an ANOVA meets the conditions of the MRM and the F-test rejects the overall null hypothesis that four groups have equal means. Group 1 has the largest sample mean and Group 4 has the smallest. Does the confidence interval for m1 - m4 conta..

Reviews

Write a Review

Programming Languages Questions & Answers

  Read a file and store the result in a string in java

Read a file and store the result in a string in java?

  Program which accepts candy name-price per pound

A program which accepts the candy name (for example, "chocolate-covered cherries"), price per pound, and number of pounds sol in average month, and displays item's data only if it is best-selling item.

  Difference between the 2 graphics

It is the business that has the knowledge about their entities (things of importance) and what kind of unique information that separate them (invoice numbers, customer IDs, and so on).

  Create program to calculate amount of paint needed

Create a program to calculate the amount of paint needed to cover one side of a house with a sloped roof . Assume tha this house has a rectangular shape with a rectangular window .

  Creating a program that writes to a data file

Creating a program that writes to a data file called Celtofarendfile.txt using the end of file structure. The program should create a conversion table of Celsius to Fahrenheit from 0 to 100 Celsius in increments of 5.

  Write function template that accepts array

Write a function template arraySum () whihc accepts an array and number of values stored in it and returns sum of those values.

  Write class using static variable to store annual interest

Write class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders. Each object of class contains private instance variable savingsBalance,

  Write a machine-language program

Write a machine-language program to input two one-digit numbers add them, and output the one-digit sum. Write it in a format suitable for the loader and execute it on the Pep/8 simulator.

  Write program to reads student-s name with test scores

Write down a program which reads student's name together with his or her test scores. Program must calculate the average test score for each student and allot the suitable grade.

  Implement the curried functions in ocaml

Goal of this project is to get you familiar with programming in OCaml. You will have to write a number of small functions - write a helper function which will add another 3-6 lines.

  Write code for invoking method named sendtwo

Write the code for invoking a method named sendTwo. There are two arguments for this method: a double and an int.

  Write application that inputs five number

Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each of which is between 10 and 100, inclusive.

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