Issues with some simple code problem

Hello im trying to make a program that is very simple based on these parameters:

-Write a C++ program to get the input of number of tickets for an amusement park. Each ticket costs $ 5.50. Every fifth ticket is free. If any person is less than 5 or greater than 65 (by age), then they get a discount of 1.08. Calculate the total price for group of visitors.
Specification: You can either use do-while / while / if-else if / switch

This is what I have so far but im very new and kinda lost.

int main()
{
int visitor;
int age;
int i;
double total = 0;

for (i = 1; i <= visitor; i++);
{
if (i % 5 == 0)**
{

};
else
{

}
continue;
if (age < 5 || age > 65)++
{

};
else
{

};
return 0;
}
};
it looks like you are on the right track but you do need to remove the trailing semi-colons after the curly braces. Let us know if there is a specific issue or concept that you aren't getting. We will be glad to help. not sure what you are trying to do with that weird continue there but you are still on the right track.
Last edited on
Topic archived. No new replies allowed.