DEV C++ programming help

i am supposed to create a code that a user can input the number of an item and will get the total. the number of items ordered determines the pricing they will get. 1 item $10, 2-4 items $9ea., 5-9 items $8ea., 10+ items $6ea. this is what i have thus far. please help i am not good at programming. i am using DEV C++


#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{

int choice = 0;
double number,
number2,
number3,
discount,
discount2,
discount3;

cout << "Enter the number of products you would like to determine your rate: ";
cin >> choice;

if (choice == 1)
{
cout << "The price for one is $10 ";

}

if (choice > 2 || choice < 4);
{
cout << "\n\nEnter the number of widgets: ";
cin >> number;

discount = (number * 9) ;
cout << "\n\nThe total is " << discount;
}

if (choice > 5 || choice < 9)
{
cout << "\n\nEnter the number of widgets: ";
cin >> number2;

discount2 = (number2 * 8) ;
cout << "The total is " << discount2;
}

if (choice > 10)
{
cout << "\n\nEnter the number of widgets: ";
cin >> number2;

discount3 = (number3 * 6 ) ;
cout << "The total is " << discount3;
}

system("PAUSE");
return 0;
}
Topic archived. No new replies allowed.