Question: programming 2 (C++) please write the codes CLEARLY, with the input/output The class Medicine has the private data members name, disease of type string, dosage

programming 2 (C++)
please write the codes CLEARLY, with the input/output
 programming 2 (C++) please write the codes CLEARLY, with the input/output

The class Medicine has the private data members name, disease of type string, dosage of type integer, and price of type float. The class also has the following public member functions: Implement the class and its member functions. Use the following main program: int main0 \{ Medicine mQng. mTwe; mQueseto; mQneprinto: mTwe = mane extraMedicine ; mive.printo; return 0 3 Sample input/output: Enter the name of the medicine: Panadol Enter the disease name: Headache Enter the dosage: 10 Enter the price: 13 The name of the medicine is: Panadol The disease name is: Headache The dosage is: 10 The price is: 13 The name of the medicine is: PanadolExtra The disease name is: Headache The dosage is: 13 The price is: 16.25

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!