Greetings.

New member and first time poster here.

I think i've got all the information needed, now i need help with the mathematics. Mainly, Showing the Subtotal for the item price after the discount is applied. I have googled and googled, but haven't found a clear concise way of doing it, so i came here.

I'm not sure if i was even suppose to paste the full code, so i apologize if i broke a rule.

I do have some more if statements to add, but i was wanting to get the basic layout completed first.

Also, as you can see below, there is two yes/no options. I think they need to be set as char variables but i am not sure.

anyways, take a look, if I've over complicated it, please let me know, if not, then great.

I always appreciate help.


!-------------------------Begin Code Here-----------------------------------!

Thanks for looking.

#include <iostream>

using namespace std;

int main()
{
int ItemPrice, ProductDiscountRate,SeniorDiscountRate,CustomerAge, DeliveryService, ZipCode;

cout << "Item Price:";
cin >> ItemPrice;
cout << "62 years or older? (Yes/No)";
cin >> CustomerAge;
cout << "Delivery? (Yes/No)";
cin >> DeliveryService;
cout << "Zip Code:";
cin >> ZipCode;

if ( ItemPrice >= 1500.00 ) { ProductDiscountRate = 25; }
if ( CustomerAge = 1 ) { SeniorDiscountRate = 10; }
if ( DeliveryService = 1) { DeliveryService = 20; }


cout << "Product Dicount:" << ProductDiscountRate << endl;
cout << "Senior Discount:" << SeniorDiscountRate << endl;
cout << "Delivery Service:" << DeliveryService << endl;
cout << "Zip Code:" << ZipCode << endl;

cin.get();
}