//Fathi mohammedd fathi rezq bekhit 

#include <iostream>
using namespace std;
   
void notmember()
{
	
	float test,medicine,service;
	double ans;
	cout << "please input service charge" << endl;
	cin >> service;
	cout<< "please input the test charges" << endl;
	cin >> test;
	cout << "Please input medical charges" << endl;
	cin >> medicine;
	ans = service + test + medicine;
	cout << "the total bill is $" << ans << endl;
}







void member()
{
	float charge,test;
	double answer;
	cout << "please input service charge" << endl;
	cin >> charge;
	cout<< "please input the test charges" << endl;
	cin >> test;
	answer= test + charge;
	
	cout << "the total bill is $" << answer << endl;

	
}





int main()
{
	int choice;
	cout << "please input 1 if you are a member and any other number if you are not a member of the dental plan" << endl;
	cin >> choice;

		if (choice ==1)
		{
			member();
		}
		else
		{
			notmember();
		}
	
	return 0;
}
