Logical Operators: Movie Ticket Price

Problem #4 – Logical Operators: Movie Ticket Price

The local movie theater in town has a ticket price of $12.00.

Don't use plagiarized sources. Get Your Custom Essay on
Logical Operators: Movie Ticket Price
Just from $8 /Page 0r 300 words
Order Now

But, if you are a senior (55 and older), or are under 10, or are seeing a matinee which screens from 3 pm to 5 pm, you get the discounted price of $7.00, nice!

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

Hint 1: “55 and older” is INCLUSIVE

Hint 2: under 10 is EXCLUSIVE

Hint 3: the range 3 to 5 is INCLUSIVE

Hint 4: limit 1 per patron (i.e., it doesn’t compound)

Hint 5: considering there’s 3 am and pm and 5 am and pm, using a 24-hour clock (aka military time) may be an easier option (0000 to 2359)

Determine which of the two prices the customer is eligible for.

  • Givens:
    • Time of Movie (Assume whole numbers here)
    • Age of the customer
  • Result To Print Out:
    • “The ticket price is X”

Must use C# coding using conditional statements


In: Computer Science

Looking for a similar assignment? Get help from our qualified experts!

Order Now