Problem #4 – Logical Operators: Movie Ticket Price
The local movie theater in town has a ticket price of $12.00.
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!
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
Forte Inc. produces and sells theater set designs and costumes. The company began operations on January 1, Year 1. The following transactions relate to securities acquired by Forte Inc., which has a fiscal year ending on December 31:
Record these transactions on page 10:
| Year 1 | ||
|---|---|---|
| Jan. | 22 | Purchased 22,000 shares of Sankal Inc. as an available-for-sale security at $18 per share, including the brokerage commission. |
| Mar. | 8 | Received a cash dividend of $0.22 per share on Sankal Inc. stock. |
| Sep. | 8 | A cash dividend of $0.25 per share was received on the Sankal stock. |
| Oct. | 17 | Sold 3,000 shares of Sankal Inc. stock at $16 per share less a brokerage commission of $75. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $25 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment. |
Record these transactions on page 11:
| Year 2 | ||
|---|---|---|
| Jan. | 10 | Purchased an influential interest in Imboden Inc. for $720,000 by purchasing 96,000 shares directly from the estate of the founder of Imboden Inc. There are 300,000 shares of Imboden Inc. stock outstanding. |
| Mar. | 10 | Received a cash dividend of $0.30 per share on Sankal Inc. stock. |
| Sep. | 12 | Received a cash dividend of $0.25 per share plus an extra dividend of $0.05 per share on Sankal Inc. stock. |
| Dec. | 31 | Received $57,600 of cash dividends on Imboden Inc. stock. Imboden Inc. reported net income of $450,000 in Year 2. Forte Inc. uses the equity method of accounting for its investment in Imboden Inc. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $22 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment for the decrease in fair value from $25 to $22 per share. |
| Required: | |
| 1. | Journalize the entries to record these transactions. Refer to the information given and the Chart of Accounts provided for the exact wording of the answer choices for text entries. |
| 2. | Prepare the investment-related asset and stockholders’ equity balance sheet presentation for Forte Inc. on December 31, Year 2, assuming that the Retained Earnings balance on December 31, Year 2, is $389,000. Refer to the Chart of Accounts and Amount Descriptions provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. For those boxes in which you must enter subtracted or negative numbers use a minus sign. |
In: Accounting
|
1. Journalize the March transactions. The Triquel records admission revenue as service revenue, concession revenue as rent revenue, and film rental expense as rent expense. (If no entry is required, select "No entry" for the account titles and enter 0 for the amounts. Credit account titles are automatically indented when amount is entered. Do not indent manually. Record journal entries in the order presented in the problem.)
2. Post the March journal entries to the ledger. (Post entries in the order of information presented in the question.)
3. Prepare a trial balance on March 31, 2017.
In: Accounting
Forte Inc. produces and sells theater set designs and costumes. The company began operations on January 1, Year 1. The following transactions relate to securities acquired by Forte Inc., which has a fiscal year ending on December 31:
Record these transactions on page 10:
|
Year 1 |
||
| Jan. | 22 | Purchased 22,000 shares of Sankal Inc. as an available-for-sale security at $18 per share, including the brokerage commission. |
| Mar. | 8 | Received a cash dividend of $0.22 per share on Sankal Inc. stock. |
| Sep. | 8 | A cash dividend of $0.25 per share was received on the Sankal stock. |
| Oct. | 17 | Sold 3,000 shares of Sankal Inc. stock at $16 per share less a brokerage commission of $75. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $25 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment. |
Record these transactions on page 11:
|
Year 2 |
||
| Jan. | 10 | Purchased an influential interest in Imboden Inc. for $720,000 by purchasing 96,000 shares directly from the estate of the founder of Imboden Inc. There are 300,000 shares of Imboden Inc. stock outstanding. |
| Mar. | 10 | Received a cash dividend of $0.30 per share on Sankal Inc. stock. |
| Sep. | 12 | Received a cash dividend of $0.25 per share plus an extra dividend of $0.05 per share on Sankal Inc. stock. |
| Dec. | 31 | Received $57,600 of cash dividends on Imboden Inc. stock. Imboden Inc. reported net income of $450,000 in Year 2. Forte Inc. uses the equity method of accounting for its investment in Imboden Inc. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $22 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment for the decrease in fair value from $25 to $22 per share. |
| Required: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1. | Journalize the entries to record these transactions. Refer to the information given and the Chart of Accounts provided for the exact wording of the answer choices for text entries. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2. |
Prepare the investment-related asset and stockholders’ equity balance sheet presentation for Forte Inc. on December 31, Year 2, assuming that the Retained Earnings balance on December 31, Year 2, is $389,000. Refer to the Chart of Accounts and Amount Descriptions provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. For those boxes in which you must enter subtracted or negative numbers use a minus sign. 1a. Journalize the entries to record Year 1 transactions. Be sure to enter the year as part of the date for the first entry on each page. Refer to the information given and the Chart of Accounts provided for the exact wording of the answer choices for text entries. PAGE 10 JOURNAL ACCOUNTING EQUATION
1b. Journalize the entries to record Year 2 transactions. Be sure to enter the year as part of the date for the first entry on each page. Refer to the information given and the Chart of Accounts provided for the exact wording of the answer choices for text entries. PAGE 11 JOURNAL ACCOUNTING EQUATION
2. Prepare the investment-related asset and stockholders’ equity balance sheet presentation for Forte Inc. on December 31, Year 2, assuming that the Retained Earnings balance on December 31, Year 2, is $389,000. Refer to the Chart of Accounts and Amount Descriptions provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. For those boxes in which you must enter subtracted or negative numbers use a minus sign.
|
In: Accounting
*****IN JAVA****
Implement a theater seating chart as a two-dimensional array of ticket prices, like this:
{10, 10, 10, 10, 10, 10, 10, 10, 10, 10}
{10, 10, 10, 10, 10, 10, 10, 10, 10, 10}
{10, 10, 10, 10, 10, 10, 10, 10, 10, 10}
{10, 10, 20, 20, 20, 20, 20, 20, 10, 10}
{10, 10, 20, 20, 20, 20, 20, 20, 10, 10}
{10, 10, 20, 20, 20, 20, 20, 20, 10, 10}
{20, 20, 30, 30, 40, 40, 30, 30, 20, 20}
{20, 30, 30, 40, 50, 50, 40, 30, 30, 20}
{30, 40, 50, 50, 50, 50, 50, 50, 40, 30}
Write a code snippet that:
- uses a for loop to print the array with spaces between the seat prices
- prompts users to pick a row and a seat using a while loop and a sentinel to stop the loop.
- outputs the seat price to the user.
In: Computer Science
In: Accounting
In: Statistics and Probability
Java
I'm trying to create a program that replicates a theater ticket reservation system. I have a Seat class with members row(integer), seat(character) and ticketType(character). Where a ticket type can be 'A' adult, 'C' child, 'S' senior, or '.' recorded as empty. I have a Node generic class that points to other nodes(members): up, Down. Left, Right. It also has a generic payload. Lastly, I have an Auditorium class which is also generic. its member is a First Node<T>.
As you can see, its a linked list of nodes where each node is supposed to be a seat (Node<Seat>). The Auditorium is supposed to be a grid of Seat Nodes that contain the seat information within. This way, I can later use the information to intake customer orders and check availability, recommend a best option if not available, etc.
My problem is I'm having trouble creating an overloaded constructor for the Auditorium class. The current auditorium seating information is held in a text file with text such as:
AA.AA....AAA..AACCSS
..AC.....A.........A
S...........AACCCAAC
.AA...CC.SS.....SSC.
A.A..S...S..A......A
I need to add each seat into a node into the auditorium grid before asking the customer for their order to know seat availability.
I tried creating this LONG constructor, but I think the issue is converting the item of type Seat into an item or generic T ((T)currentSeat). This causes the auditorium to output A as ticket type for EVERY single seat in the auditorium. Could you give advice on how to better create an auditorium through the constructor?
for(int i = 0 ; i < rows ;
i++)
{
//System.out.println("row " + i);
currentRowFromFile = readFile.nextLine();
for (int j = 0;
j < columns; j++)
{
//System.out.println( "column " + j);
currentSeat.setRow(i);
currentSeat.setSeat((char)('A'+ j));
//System.out.print("seat column ");
//System.out.println((char)('A'+ j));
currentSeat.setTicketType(currentRowFromFile.charAt(j));
if(j == 0 && i == 0)
{
First = new Node<T>
((T)currentSeat);
lastNodeCreated =
First;
thisRowsFirstElement =
First;
System.out.println("The node
being added for index " + i + " " + j + "has seat type: " +
currentSeat.getTicketType());
}
if(j == 0 && i!= 0) // new row first
element
{
//first column on a different
row
Node<T>newNodeToInsert
= new Node<T>((T)currentSeat);
thisRowsFirstElement.setDown(newNodeToInsert); //move
down
thisRowsFirstElement.getDown().setUp(thisRowsFirstElement);
thisRowsFirstElement =
thisRowsFirstElement.getDown(); // now continue on this row
lastNodeCreated =
thisRowsFirstElement;
System.out.println("The node
being added for index " + i + " " + j + "has seat type: " +
currentSeat.getTicketType());
}
else if(i == 0 && j != 0) // top
row
{
Node<T> newNodeToInsert
= new Node<T>((T)currentSeat);
lastNodeCreated.setRight(newNodeToInsert);
lastNodeCreated.getRight().setLeft(lastNodeCreated); //
<-->
lastNodeCreated =
lastNodeCreated.getRight();
System.out.println("The node
being added for index " + i + " " + j + "has seat type: " +
currentSeat.getTicketType());
}
else if(i != 0 && j != 0) // not top row
or first column
{
Node <T>
newNodeToInsert = new Node<T> ((T)currentSeat);
lastNodeCreated.setRight(newNodeToInsert);
lastNodeCreated.getRight().setLeft(lastNodeCreated);
lastNodeCreated.getRight().setUp(lastNodeCreated.getUp().getRight());
lastNodeCreated.getUp().getRight().setDown(lastNodeCreated.getRight());
lastNodeCreated =
lastNodeCreated.getRight();
System.out.println("The node
being added for index " + i + " " + j + "has seat type: " +
currentSeat.getTicketType());
}
}
In: Computer Science
Forte Inc. produces and sells theater set designs and costumes. The company began operations on January 1, Year 1. The following transactions relate to securities acquired by Forte Inc., which has a fiscal year ending on December 31:
|
Year 1 |
||
| Jan. | 22 | Purchased 23,600 shares of Sankal Inc. as an available-for-sale security at $18 per share, including the brokerage commission. |
| Mar. | 8 | Received a cash dividend of $0.21 per share on Sankal Inc. stock. |
| Sep. | 8 | A cash dividend of $0.24 per share was received on the Sankal stock. |
| Oct. | 17 | Sold 4,700 shares of Sankal Inc. stock at $15 per share less a brokerage commission of $60. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $26 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment. |
Record these transactions on page 11:
|
Year 2 |
||
| Jan. | 10 | Purchased an influential interest in Imboden Inc. for $1,287,000 by purchasing 165,000 shares directly from the estate of the founder of Imboden Inc. There are 500,000 shares of Imboden Inc. stock outstanding. |
| Mar. | 10 | Received a cash dividend of $0.29 per share on Sankal Inc. stock. |
| Sep. | 12 | Received a cash dividend of $0.24 per share plus an extra dividend of $0.06 per share on Sankal Inc. stock. |
| Dec. | 31 | Received $56,400 of cash dividends on Imboden Inc. stock. Imboden Inc. reported net income of $489,800 in Year 2. Forte Inc. uses the equity method of accounting for its investment in Imboden Inc. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $21 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment for the decrease in fair value from $26 to $21 per share. |
| Required: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1. | Journalize the entries to record these transactions. Refer to the information given and the Chart of Accounts provided for the exact wording of the answer choices for text entries. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Prepare the investment-related asset and stockholders’ equity balance sheet presentation for Forte Inc. on December 31, Year 2, assuming the Retained Earnings balance on December 31, Year 2, is $376,000. Refer to the Chart of Accounts and Amount Descriptions provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. For those boxes in which you must enter subtracted or negative numbers use a minus sign | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HART OF ACCOUNTS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Forte Inc. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| General Ledger | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Accounting
Forte Inc. produces and sells theater set designs and costumes. The company began operations on January 1, Year 1. The following transactions relate to securities acquired by Forte Inc., which has a fiscal year ending on December 31:
Record these transactions on page 10:
|
Year 1 |
||
| Jan. | 22 | Purchased 19,600 shares of Sankal Inc. as an available-for-sale security at $19 per share, including the brokerage commission. |
| Mar. | 8 | Received a cash dividend of $0.21 per share on Sankal Inc. stock. |
| Sep. | 8 | A cash dividend of $0.24 per share was received on the Sankal stock. |
| Oct. | 17 | Sold 1,600 shares of Sankal Inc. stock at $15 per share less a brokerage commission of $80. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $25 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment. |
Record these transactions on page 11:
|
Year 2 |
||
| Jan. | 10 | Purchased an influential interest in Imboden Inc. for $886,950 by purchasing 121,500 shares directly from the estate of the founder of Imboden Inc. There are 450,000 shares of Imboden Inc. stock outstanding. |
| Mar. | 10 | Received a cash dividend of $0.29 per share on Sankal Inc. stock. |
| Sep. | 12 | Received a cash dividend of $0.24 per share plus an extra dividend of $0.06 per share on Sankal Inc. stock. |
| Dec. | 31 | Received $53,800 of cash dividends on Imboden Inc. stock. Imboden Inc. reported net income of $407,200 in Year 2. Forte Inc. uses the equity method of accounting for its investment in Imboden Inc. |
| Dec. | 31 | Sankal Inc. is classified as an available-for-sale investment and is adjusted to a fair value of $23 per share. Use the valuation allowance for available-for-sale investments account in making the adjustment for the decrease in fair value from $25 to $23 per share. |
| Required: | |
| 1. | Journalize the entries to record these transactions. Refer to the information given and the Chart of Accounts provided for the exact wording of the answer choices for text entries. |
| 2. | Prepare the investment-related asset and stockholders’ equity balance sheet presentation for Forte Inc. on December 31, Year 2, assuming the Retained Earnings balance on December 31, Year 2, is $415,000. Refer to the Chart of Accounts and Amount Descriptions provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. For those boxes in which you must enter subtracted or negative numbers use a minus sign. |
In: Accounting