Create an application that calculates figures for business

Assignment Help JAVA Programming
Reference no: EM131534238

Programming Assignment

1. Plan your logic before working on the project and review the syntax you will use in the project. Think about how you want the output to be displayed to the user. You might want to tell the user what the program does and what type of input you expect from the user. You interface structure could do this. Select names of the variables you will use in the program.

2. Create a JAVA project Using NetBeans IDE. And have the code window open to write the project code. Here are some instructions on creating the project.

• Declare variables to hold input information.

• Using the JOptionPane Concept. (Some programs might need just the Scanner.

• Ask the user to enter some information requested and save the response to a variable. This could look like: name = JOptionPane.showInputDialog ("Enter your name").

• Use line spacing (i.e. \n) to separate lines of output to make it easy for the user to read the information and have proper line length.

3. Documentation: All lines of code must be documented.

• Use the syntax to designate lines in code as comments (//)

• These comments can be at the end of a line of code or in a group definition at the beginning of a section of code. All methods and function need a group heading document.

4. Run the program using Run Project menu item.Debug the code, making sure all calculations are correct and the line spacing is suitable for readability.

Assignment

A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie company. Create an application that calculates and displays the following figures for one night's box office business at a theater:

Create a GUI application that allows the user to enter the following data into text fields:

• Price per adult ticket
• Number of adult tickets sold
• Price per child ticket
• Number of child tickets sold

The application should calculate and display the following data for one night's box office business at the theater:

• Gross revenue for adult tickets sold. This is the amount of money taken in for all adult tickets sold

• Net revenue for adult tickets sold. This is the amount of money from adult ticket sales left over after the payment to the movie company has been deducted.

• Gross revenue for child tickets sold. This is the amount of money taken in for all child tickets sold.

• Net revenue for child tickets sold. This is the amount of money from child tickets sales left over after the payment to the movie company has been deducted.

• Total gross revenue. This is the sum of gross revenue for all adult and child tickets sold.

• Total net revenue. This is the sum of net revenue for adult and child tickets sold.

Assume the theater keeps 20% of the box office receipts. Use a named constant in your code to represent this percentage.

Use the following set of test data to determine whether the application is calculating properly.

Ticket Sales

Revenue

Price per Adult Ticket: $6.00
Adult Tickets Sold: 120
Price per Child Ticket: $4.00
Child Tickets Sold: 72

Gross Adult Ticket Sales: $720.00
Gross Child Ticket Sales: $288.00
Total Gross Revenue: $1,008.00
Net Adult Ticket Sales: $144.00
Net Child Ticket Sales: $57.60
Total Net Revenue: $201.60

Reference no: EM131534238

Questions Cloud

Discuss the given forms of the organizations : Denzel and Shantell form a partnership by contributing $70,000 and $35,000, respectively. They agree to an interest allowance equal to 10% of each partner's.
Why is determining abnormal behavior so difficult : Assignment: Challenges in Identifying Mental Disorders. Why is determining abnormal behavior or a mental disorder so difficult
Deceitful advertising and direct falsehoods : What's the difference between deceitful advertising and direct falsehoods?
List of questions you might ask a prospective job applicant : Prepare a list of questions you might ask a prospective job applicant so that they do not violate federal laws.
Create an application that calculates figures for business : The remainder goes to the movie company. Create an application that calculates and displays following figures for one night's box office business at a theater.
What are the consequences for the organization : Historical background of the issue/topic - Why is this an important issue to the ethics field today - What are the consequences for the organization
Discuss legal issues that may arise in human service work : Legal issues that may arise in human service work. Distinguish between ethics codes, codes of conduct, standards of practice, employer policies, and the law
Michael porter three strategies : What gives Amazon an edge over its competitors based on Michael Porter three Strategies?
Should the remaining partners share the resulting reduction : Can partners limit the right of a partner to commit their partnership to contracts? Would such an agreement be binding on the partners.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create appropriate get and set methods to retrieve values

Create appropriate get and set methods to retrieve and assign values to these names. For example, getMiddleName(viveAddressBook) should return the middle name of the person Vive.

  Draw dashed lines

Write a class Lines containing a static method dashedLine to draw dashed lines, so it can write:

  Java programming-gamesystem

JTabbed Panes for GUI Components Part 2: --- Create a JFrame program with a JTabbed pane on it with two panels that mimics a control box for a game system.

  The calculations were provided to you by a real estate agent

Your applet needs to extend the Applet (or JApplet) class. Of course, you need to import the appropriate applet package(s).

  Write a java program that calculates and displays the result

Write a Java program that calculates and displays the results of addition, subtraction, multiplication, division, modulus, bitwise &, or bitwise | operation on two integer values input by the user.

  Discuss the types of java exceptions

Discussion Question: Discuss the types of Java exceptions that can be thrown and the best ways to handle them

  Describe the relationship between a gui component and events

Describe the relationship between a GUI component and events? What is the programmer's responsibility when developing a GUI, event-driven program

  Write an application in which the user can enter a date

Write an application in which the user can enter a date using digits and slashes (for example, " 6/24/2012 " ), and receive output that displays the date with the month shown as a word

  Online reservation and bookeeping software for beauty salon

Online Reservation and Bookeeping Software for Beauty Salon - develop a software (with Java) for a beauty salon, which will replace a current paper based system, so that people could make reservations online and administrator could do book keeping.

  Function searches all files specified on the command line

Write a program Find that searches all files specified on the command line and prints out all lines containing a reserved word. For example, if you call java Find ring report.txt address.txt Homework.java, then the program might print:

  Java file input and outputnbspcreate a file that contains

java file input and outputnbspcreate a file that contains your favorite movie quote. use a text editor such as notepad

  Relation between the objects

What will be said about the relation between the objects object1 and object2 - Make this program using java programming.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd