Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use visual studio C# for both parts. Use a console app template Using windows Forms Application template oin Instructions: Create an application that calculates the

Use visual studio C# for both parts.
Use a console app template image text in transcribed
Using windows Forms Application template
image text in transcribed
image text in transcribed
oin 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 CalcStayCharges -calculates and returns the base charges for the hospital stay. This is CalcMiscCharges-calculates and returns the total of the medication, surgical, lab, and CalcTotalCharges-calculates and returns the total charges. Create and use the following value-returning methods in the application: computed as $350 times the number of days in the hospital. physical rehabilitation charges. Requirements: -Submit a single zip file containing your solution folder using the following format: username module3activity1.zip Part 2- Employee Class (20 points Instructions: In Visual Studio, create a new Windows Forms Application. Create a class named Employee (in its own file) that has the following properties: Name-the Name property holds the employee's name IdNumber - the ldNumber property holds the employee's ID number. Department-The Department property holds the name of the department in which the employee works. Position-the Position property holds the employee's job title. The class should have the following overloaded constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name, employee's ID number, department, and position A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name and ID number. The Departmentand Position properties should be assigned an empty string (" ) A parameterless constructor that assigns empty strings ("] to the Name, Department, and Position properties, and 0 to the IdNumber property In your application, create three Employee objects to hold the following data: Name Susan Meyers 47899 Mark Jones 39119 ID Number Department Position Accounting, Vice President IT Programmer Joy Rogers 81774 Manufacturing Engineer The application should store this data in the three objects and display the data for each employee on the screen

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago