Using if/else statements to make calculations

I am very new to c++. Please I need help figuring out how to write my code so far I have this:

#include <iostream>

using namespace std;

int main() {
int numTickets;

return 0;
}

The program should run like this:

Enter the number of tickets to purchase
22
The cost of 22 tickets is $167.31
you saved $47.19 on your ticket purchase

Additional info:
With a group of 20 or more you can offer a 22% discount. For any number of people less than that you can offer 4.5% discount. Write a C++ program that will input the number of tickets to purchase, apply the appropriate discount and then display the total purchase cost of the tickets and the amount of money saved. Ticket prices to an event are typically $9.75.
Hey, Please use code tags for all of your code = http://www.cplusplus.com/articles/jEywvCM9/

This is an ultra simple task. Start from the basics - Simple input/output. Read this and start working on the task =) http://www.cplusplus.com/doc/tutorial/basic_io/

And here is a super simple video on how to calculate - https://www.youtube.com/watch?v=yjucJUsHSqg&index=5&list=PLAE85DE8440AA6B83

And on if statements - http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm
Last edited on
I am new to this site. Thanks for all the links they are really helpful.
Topic archived. No new replies allowed.