All pastes #923011 Raw Edit

sdfd

public text v1 · immutable
#923011 ·published 2008-02-29 04:31 UTC
rendered paste body
First correct any errors noted by instructor in Part I.  Now change the pricing in the Part I program to include the following adjustments
	
Category	Price	Adjustment
Children	$2.00	
Youth	$8.50	 See Extra Credit.
Adult	$12.50	After 10 adult tickets, the price is $9.00 per ticket.  The first 10 tickets are always $12.50.
		 
Add the total number of tickets to the display.  Also all groups with 20 or more people or more than 8 youth must pay a $25.00 security fee.  Add the security fee to the total bill.  Only display the security fee if not zero.

After you make the pricing changes, add a pretest while loop so the program executes until the user enters -1 for the child ticket value.  See the pretest loop example in the Chapter Two Repetition web page.  Review the example that uses price to determine whether the loop executed.

Here is a sample display after three values are entered:

Fanzone Amusement Park

		Tickets	 Price	  Total	 
Children	   ##	  2.00	$$$$.$$		
Youth	   ##	  8.50	$$$$.$$		
Adults	   ##	 12.50	$$$$.$$		
			------
		  	  ###
Security fee	    	  		  25.00
					 		-------			
	    Total Bill   	         $$$$$.$$