Question: Using C sharp programming. write the following program. 1. Acetaminophen class Design a class named Acetaminophen that contains: A int property named Age in years

Using C sharp programming. write the following program. Using C sharp programming. write the following program. 1. Acetaminophen class Design

a class named Acetaminophen that contains: A int property named Age in

1. Acetaminophen class Design a class named Acetaminophen that contains: A int property named Age in years for the children (default 2). A double property name weight in pounds for the children (default 24). . . A no-argument constructor that creates a default children Acetaminophen. . A constructor that creates a children Acetaminophen with the specified age and weight. .The mutator for Age will check if the new value is between 2 and 11 before using the new value otherwise it will throw an exception. The mutators for weight will check if the new value is between 24 and 95 before using the new value otherwise it will throw an exception. A method named LiquidDosageByweight() that returns as a double the dosage of Acetaminophen in ml. A method named LiquidDosageByAge() that returns as a double the dosage of Acetaminophen in ml. The single oral dose is: . Weight (Ibs) |Age (years) Liquid Dosage (ml) 24-35 36-47 48-59 60-71 72-95 2-3 4-5 6-8 9-10 7.5 10 12.5 15 Figure 1 -Single Oral Dose

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!