can someone help me with this question in c++ please
Benefits Type Price Gold $55.00/yr Unlimited store access; Ouline discounts: $50 gift card Platinum 110.00/yr Ualimited stose access: Online discounts: S100 gift card: 3 % cash back on all purchases Menabera 65 and older rnsives 9,09 % of the price R program that does the following Dsplay the message \"Enter your first name: Read in the input from the user for first nazne display the message -Enter your last name Bead in the input from the user for last nane Dsplay the message \"Enter your address:\" Read in the input from the user for address Display the message \"Enter your email:\" Read in the input from the user for email DHplay the inesiage \"Enter your birth year in the input from the user for birth year D\'splay the nmessage \"Enter I for Gold or 2 for Platinum Read in the input from the user for membership type Cokulate the age of the user ulate the price for the user isplay the information of the user as follows last Name). (first Namel (age) address); (email membershipType]: Siprice Display the benefits for the user with each benefit on a different line starting with the word \"BENEFITS on its own line Total
Code:
#include <iostream>
#include <string>
using namespace std;
int main() {
string fname,lname,addr,email,type;
int byear,mtype,cyear = 2016,age,price;
cout << \"Enter your first name: \";
cin >> fname;
cout << \"Enter your last name: \";
cin >> lname;
cout << \"Enter your address: \";
cin >> addr;
cout << \"Enter your email: \";
cin >> email;
cout << \"Enter your birth year: \";
cin >> byear;
cout << \"Enter 1 for Gold or 2 for Platinum: \";
cin >> mtype;
age = cyear - byear;
if(mtype == 1){
price = 55 * age;
type = \"Gold card\";
}else if(mtype == 2){
price = 110 * age;
type = \"Platinum card\";
}else{
cout << \"Enter either 1 or 2\" << endl;
}
cout << lname << \" \" << fname << \" \" << age << endl;
cout << addr << \" \" << email << endl;
cout << type << \" :$\" << price << endl;
}
Output: