Write a program that accepts the number of people in each of the three age categories, performs the necessary computations, and displays a bill for the group's admission similar to the display below. Be sure to test for a variety of values.
Here is a sample display after three values are entered:
Amusement Park
Tickets Price Total
Children ## 2.00 $$$$.$$
Youth ## 8.50 $$$$.$$
Adults ## 12.50 $$$$.$$
Total Bill $$$$$.$$
i cant get wat i got to run, can someone see if im doing it right?
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//declare variables
int numberOfChildren,
numberOfYouth,
numberOfAdult;
const double children = 2.00,
youth = 8.50,
adult = 12.50;
double youthCost,
childrenCost,
adultCost,
totalCost;
//input
cout << "Enter number of children: ";
cin >> numberOfChildren;
cout << "Enter number of youth: ";
cin >> numberOfYouth;
cout << "Enter number of adult: ";
cin >> numberOfAdult;
//process
numberOfChildren * 2.00 = childrenCost;
numberOfYouth * 8.50 = youthCost;
numberOfAdult * 12.50 = adultCost;
childrenCost + youthCost + adultCost = totalCost;
//output
cout.sef(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);
cout << setw(40) << "Drenning Amusement Park" << endl << endl;
cout << setw(26)<< "Tickets",
cout << setw(10)<< "Price",
cout << setw(10)<< "Total" << endl;
cout << "Children" << numberOfChildren << "2.00" << childrenCost << endl;
cout << "Youth" << numberOfYouth << "8.50" << youthCost << endl;
cout << "Youth" << numberOfAdult << "12.50" << adultCost << endl;
cout << setw(44) << "Total Bill" << totalCost;
system("pause");
return 0;
}