This program is supposed to give me the total entrance fee to an event. It asks how many people are in the group and it adjusts the price based on how many people are in the group. My problem is that if 11 or more people are in the group they are charged 60 dollars per person. But I don't have the knowledge on how to make a statement that reads from 11 or more people. Or should I make an "else" calculating "=>11 people do this". Any tips on how to do do this?
1 - 4 people = $100
5 - 10 people = $80
11 or more = $60
Here's what I have so far: (The output is in spanish.)
//Fee.cpp
//Creado/Revisado por <Jose Mercado> en <23 de noviembre de 2010>
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
using std::setprecision;
using std::ios;
using std::setiosflags;
I agree but I have trouble using if and else statements cause I don't know how to align them properly. That's why I'm using switch. Can I put an if or else somewhere in the code that calculates the 11 or more people without drastically changing what I have now? If so where would I put it?