Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include #include #include billType.h using namespace std; void billType::printBill() const { cout < < fixed < < showpoint; cout < < Pharmacy Charges: $

#include

#include

#include

#include "billType.h"

using namespace std;

void billType::printBill() const

{

cout << fixed << showpoint;

cout << "Pharmacy Charges: $" << pharmacyCharges << endl;

cout << "Room Charges: $" << roomRent << endl;

cout << "Doctor's Fees: $" << doctorFee << endl;

cout << "______________________________ " << endl;

cout << "Total Charges: $" << pharmacyCharges - roomRent + doctorFee << endl;

}

double billType::billingAmount()

{

return pharmacyCharges + roomRent + doctorFee;

}

void billType::setInfo(string id, double phCharges, double rRent,

double docFee)

{

ID = id;

pharmacyCharges = phCharges;

roomRent = rRent;

doctorFee = docFee;

}

void billType::setID(string id)

{

ID = id;

}

string billType::getID()

{

return ID;

}

void billType::setPharmacyCharges(double charges)

{

pharmacyCharges = charges;

}

double billType::getPharmacyCharges()

{

return pharmacyCharges;

}

void billType::updatePharmacyCharges(double charges)

{

pharmacyCharges = pharmacyCharges + charges;

}

void billType::setRoomRent (double charges)

{

roomRent = charges;

}

double billType::getRoomRent()

{

return roomRent;

}

void billType::updateRoomRent(double charges)

{

roomRent = roomRent + charges;

}

void billType::setDoctorFee(double charges)

{

doctorFee = charges;

}

double billType::getDoctorFee()

{

return doctorFee;

}

void billType::updateDoctorFee(double charges)

{

doctorFee = doctorFee + charges;

}

billType::billType(string id, double phCharges, double rRent,

double docFee)

{

ID = id;

pharmacyCharges = phCharges;

roomRent = rRent;

doctorFee = docFee;

}

Error: no 'void billType::setRoomRent(double)' member function declared in class 'billType'

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

Identify conflict triggers in yourself and others

Answered: 1 week ago