Question: Could use some help programing this in C. member discount - apply discounts for members 1 tinclude A ticket to FunCo amusement park normally costs

Could use some help programing this in C.Could use some help programing this in C. member discount - apply

member discount - apply discounts for members 1 tinclude A ticket to FunCo amusement park normally costs $40.00 However, the following discounts are offered 3 int main(void) { 4 // Declare variables for input values /1 TODO AAA member s receive a 5% discount . Members of the Hamster Appreciation Society receive a 7.5% discount 6 // Read input values // TODO he input to the program consists of two integer values. The first value will be non-zero if the user is a AAA member, or 0 if not. The second value will be non-zero if the user is a member of the Hamster Appreciation Society, or 0 if not. The program should print the cost of the ticket after applying the total membership discount (if any) 9 18 // Declare variable for discount // TODO 12 13 14 15 16 // Compute discount based on input values // TODO For example, if the input is 1 0 (a AAA member who does not belong to the Hamster Appreciation Society), the program should print // Compute total ticket cost based on discount /1 TODO Ticket cost is $38.00 18 19 28 21 If the input is 01 (a non-AAA member who does belong to the Hamster Appreciation Society), the program should print // Print total ticket cost // TODO Ticket cost is $37.00 return ; Hints 23 . Anyone belonging to both organizations should receive a 12.5% discount Use scanf to read the input values . Declare a variable to represent the discount that should be applied .Use iffelse statements to calculate the correct discount . Declare a variable to represent the total ticket cost with discounts applied When printing the output, use two digits of precision after the decimal point, and don't forget to print the dollar

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!