This needs to be written in c++ and run in visual studio. I needhelp writing this header file for a class bu when i try to run itit doesnt output the right fee or right discount.
Heres what i have.
#include <iostream>
#include <string>
using namespace std;
class STARmemberType
{
private:
double amtSpent;
string name;
int ID;
double fee;
double discount;
public:
void print()const;
void setAll();
void StoreDiscount();
STARmemberType(double, string, int, double,double);
STARmemberType();
};
//default constructor to set default values
STARmemberType::STARmemberType()
{
string name = ” “;
int ID = 0;
double amtSpent = 0;
double fee = 0;
double discount = 0;
}
STARmemberType::STARmemberType(double spent, stringcustomerName, int Identification, double memFee, doublestoreDisc)
{
name =