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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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