Movie Program

Run then study carefully the code for Movie

You task it to make sure you can run this program on your machine, then make the following changes to it:

1.  Before determining the price of the ticket, ask if the user has a $1 off coupon.  If they do, then give them a dollar off the price

2.  Once that works,  add a third value.  Ask if it is Wednesday.  Tickets are half price on Wednesday from the lowest price.  See if you can write code that correctly figures the correct price of the ticket:

For example,   An adult with a coupon on Wednesday would pay $3.50  (8-1/2)
A student without a coupon on Wednesday would pay $2.50  (5-0/2)
An adult with a coupon on Friday would pay $7  (8-1)
A kid is always free

Turn in a listing of your program in class on Thursday

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>