Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in Java Please! Thank you! :) Questions #2: Simple Cinema Tickets Invoice Program(7pts) Concordia Office of Community Engagement will lunch a movie theater project

image text in transcribedimage text in transcribed

Code in Java Please! Thank you! :)

Questions \#2: Simple Cinema Tickets Invoice Program(7pts) Concordia Office of Community Engagement will lunch a movie theater project that will screen movies which ended their run at theaters for a reduced ticket price of $6.99. The cinema will accept only prepaid gift card. You have been selected to be part of this project in the capacity of a research Intern. In this regard, your primary task involves writing an algorithm and Java class/program to accomplish the following: 1. Name of the class/program: A1_Q2. 2. Display a welcome/salutation message to the user of the program. 3. Display a prompt message for the user to enter the prepaid gift card retailer or bank name as a string. 4. Output a message that displays the name of the gift card used for ticket(s) purchase in upper case. 5. Display a prompt message for the user to enter the fund on the gift card as a decimal number. Kindly note that the user should enter a value greater than the movie ticket price. 6. Output a message that displays the fund on the aforementioned prepaid gift card. 7. Thereafter, process the entered fund value on the gift card, such that it is used to compute the number of tickets that can be bought and the balance that can be left on the gift card. Page 3 of 6 8. Output a message that displays the number of tickets that can be bought and the balance that can be left on the gift card. 9. Then, display a prompt message for the user to enter the number of tickets they want to purchase as an integer number. Kindly note that the user should enter a number equal or less the number of tickets that can be bought with the fund on the gift card, see point 8 above. 10. Output a message of the number of tickets purchased and the cost. 11. Next, compute and output the balance on aforementioned gift card as a double. 12. Display a prompt message for the user to enter the purchase information: day, month and year as integer number. We assume the user enter valid day, month, and year. 13. Generate the invoice based on the information entered by the user above, see the sample outputs. First the invoice should display the name Cinema Concordia, followed by the day of purchase, the number of tickets bought, the amount redeemed from the gift card, and the balance left. 14. Display a message: Invoice generated successfully. 15. Finally, display a complimentary-close message as follows: Thank you for using my bespoke Cinema Tickets Invoice Program! Welecme to the simple Cinema ziekets tnvoice Progrant: tinter the prepaid gift card retailer/bank name; fundur You will be using Fuso 2.60gift card tor yout ticket(s) purchase. Finter the athount on the gift cardt 15.100 There is a tund of 765,0 on your prepaid rowD a 60 gift card. Using your rune 260 gift card you can purchase 9 tickets and have a balance of 52,09 on the gift card. Enter the number of tieketal you want to purchaset the purchase of 8 ticket (s) costs 555,72 . The balance left on your runb 200 gift card is 59.00. Dlease enter your purchase intos Day of purchase (between 2 and 31 )f 10 Nonth of purchase (between 1 and 12): Year of purchase (between 2023 and 2020) : 2024

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions