Answered You can hire a professional tutor to get the answer.

QUESTION

This is C# Joe's Automotive performs the following routine maintenance services: Oil change$26.00 Lube job$18.00 Radiator flush$30.00 Transmission...

1. This is C#

Joe's Automotive performs the following routine maintenance services:

Oil change$26.00 Lube job$18.00 Radiator flush$30.00 Transmission flush$80.00 Inspection$15.00 Muffler replacement$100.00 Tire rotation$20.00

Instructions

Joe also performs other non-routine services and charges for parts and labor ($20 per hour). Create an application that displays the total for a customer's visit to Joe's. The form should resemble the one shown in Figure 6-28 on page 385 in your textbook. The application should have the following value-returning methods:

  • OilLubeCharges Returns the total charges for an oil change and/or a lube job, if any.
  • FlushCharges Returns the total charges for a radiator flush and/or a transmission flush, if any.
  • MiscCharges Returns the total charges for an inspection, muffler replacement, and/or a tire rotation, if any.
  • OtherCharges Returns the total charges for other services (parts and labor), if any.
  • TaxCharges Returns the amount of sales tax, if any. Sales tax is 6% and is charged only on parts. If the customer purchases services only, no sales tax is charged.
  • TotalCharges Returns the total charges.

The application should have the following void methods, called when the user clicks the Clear button:

  • ClearOilLube Clears the check boxes for oil change and lube job.
  • ClearFlushes Clears the check boxes for radiator flush and transmission flush.
  • ClearMisc Clears the check boxes for inspection, muffler replacement, and tire rotation.
  • ClearOther Clears the text boxes for parts and labor.
  • ClearFeesClearsthelabelsthatdisplaythelabelsinthesectionmarkedSummary.
  • 2.ThisisC#

in this programming exercise, you create an application that calculates hospital stay charges.

Instructions

Create an application that calculates the total cost of a hospital stay. The daily base charge is $350. The hospital also charges for medication, surgical fees, lab fees, and physical rehab. The application should accept the following input:

  • 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 and use the following value-returning methods in the application:

  • CalcStayCharges Calculates and returns the base charges for the hospital stay. This is computed as $350 times the number of days in the hospital.
  • CalcMiscCharges Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges.
  • CalcTotalCharges Calculates and returns the total charges.
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question