Write a C++ program for the calculation of the total price of the tickets that a group of visitors will pay to enter a museum .The regular price is 10.0 U.S per visitor. However students get 30% reduction , kids under 5 do not pay , kids between 5 and 10 have 50% reduction , and visitors above 60 have 20% reduction . In addition , if the number of visitors is more than 10, 15% reduction will be applied to the total price of the tickets.Write C++ program that ask the user to enter the number of student and number if the kids under 5 and the number of kids between 5 and 10 and the number of visitors above 60 and the number of visitors who do not have any special discounts .The program will calculate and display the total amount of the tickets requested ;
printf("enter number of students\n"); scanf("%d", &n_stud); printf("enter number of the kids under 5\n"); scanf("%d", &n_kids_0_5); printf("enter number of the kids between 5 and 10\n"); scanf("%d", &n_kids_5_10); printf("enter number of visitors above 60\n"); scanf("%d", &n_over_60); printf("enter number of visitors without any discounts\n"); scanf("%d", &n_without_disc);
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments