Computer program with appropriate comments

Assignment Help JAVA Programming
Reference no: EM132937341

Java - Programming Environment

Objectives:

• Analyse a simple data processing problem to correctly identify the data and high-level processing involved.

• Apply the basic programming construct of selection to develop pseudocode that solves simple data processing problems

• Use appropriate programming tools to develop an effective computer program from pseudocode

• Specify and execute test plans for pseudocode and programming code

• Develop external documentation for the process of converting a simple data processing problem into a computer program

• Internally document a computer program with appropriate comments.

Background

Winter Wonder World is a theme park located on the outskirts of the city of Goldbane. They promote themselves as providing the best day out for all the family for the best value for money.

Best fun. Best place. Best value.

Winter Wonder World wants to setup a fresh online ticketing system. You have been drawn in to develop the logic for this system and have been asked to build a simple program to display that logic prior to further development of the system taking place.

There are three main ticketing options: Child, Adult and Senior tickets, where each type has different Ticket Cost as shown in Table 1

Table 1: Winter Wonder World Ticket Costs

Option

Category

Ticket Cost

1

Child (4-17 Years)

$18.00

2

Adult (18-59 Years)

$36.00

3

Senior (60 + Years)

$32.50

N/A

Infant (0-3 Years)

Free

Task 1: Pseudocode

Write a pseudocode for the Ticketing Program that will allow a user to buy multiple tickets across different ticket categories, and then display a summary of what they have purchased.

In greater detail you will need to create a program that will:

• Ask the user to select a category of tickets to purchase

• Ask the user to enter the number of tickets to be purchased

• Display a summary message regarding the number of tickets to be purchased

• Ask the user to confirm the purchase by pressing ‘Y' (If they do not wish to confirm, the program should return to the Main Menu)

• The program should display the total amount for the number of tickets purchased through the selected category

• The program should then ask if the user wishes to purchase tickets from another category

? If Yes, then the program should return to the Main Menu, with a summary of what they have purchased underneath.

? If No, the user should be given an overall summary of what they have purchased in all categories, including a grand total, and the program should then exit

Task 2: Data dictionary

Write a Data dictionary for the corresponding pseudocode written in Task 1.
You should enter at least 10 variables.

Use the Data dictionary template given below to complete your answer.

Task 3: Desk check

Desk-check the pseudo code written in Task 1 using at least two test datasets. Provide both the test data table and desk-check table.

Use the template given below to complete your answer.

 

 

 

Input

 

Expected Total

First

Variable

 

Value

Variable

 

Value

dataset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Second

Variable

 

Value

Variable

 

Value

dataset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Desk check table:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Line

 

 

Variables

 

 

 

Input/Output

Number

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

Task 4: Programming

Write a program based on the pseudocode and data dictionary you designed in Task 1 and Task 2

• The program should match the logic specified in the pseudo code.

• The code should be easy to read and understand.

• The code should be well formatted.

• The program should use meaningful variable names

• The code should be well documented. This should include comments about the program: program name, purpose, author; comments describing each variable and comments on each section of the program.

Task 5: Testing

Test the program by providing screen shot using the following test data:

• Child: Number of tickets = 5
• Adult: Number of tickets = 10
• Senior: Number of tickets = 2

Attachment:- Programming Environment.rar

Reference no: EM132937341

Questions Cloud

Formulate contingency plans for industrial action : Formulate (draw up) contingency plans for industrial action and demonstrate in your answer how to use them should industrial action occur
Equal employment opportunity and affirmative action : Equal Employment Opportunity (EEO) and Affirmative Action (AA) are not required in today's evolved organizational climate. EEO and AA enforce quotas on organiza
How should Rocket accountant handle this situation : However, the lawyer states that the most probable cost is $5,400,000. How should Rocket's accountant handle this situation? Record any necessary entries
How the current covid-19 crisis might influence : Provide some examples from your organization analyze how the current COVID-19 crisis might influence the future organizational design and structure.
Computer program with appropriate comments : Analyse a simple data processing problem to correctly identify the data and high-level processing involved and Develop external documentation for the process
How much expense related to the franchise : How much expense related to the franchise (excluding the interest expense on the note payable) shall be recognized in 2019
How much money did the firm miss out on due to? underpricing : How much money did the firm miss out on due to? underpricing? Your investment bankers price your IPO at $15.25 per share for 10.2 million shares.
How much new capital will yvr? raise : If all of the SEO shares are primary shares and its underwriter charges 6?% of the gross? proceeds, how much new capital will YVR? raise?
What is process productivity analysis : What is profile measurement and analysis? What are the limitations of this approach? What is process productivity analysis

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a class called author

Create a class called Author is designed as follows: Three private instance variables: name (String), email (String), and gender (char of either ‘m' or ‘f'); One constructor to initialize the name, email and gender with the given values

  Have to implement a search algorithm

Suppose you have to implement a search algorithm in a high programming language such as Java or C++. You are given a linked list that is not sorted and it's rather small, in the order of a few dozen elements.

  Round the average score to one decimal

The number format in one decimal place to make this to round the average score to one decimal in this program.

  Create a subject class

create a Subject class, whose instances will represent the subjects for study at a university. A subject will have a name, just a String

  Write a complete java program called calculateaverage

Write a complete Java program called lCalculatell?uw'erage according to the following guidelines. The program prompts the user for ?ve to ten numbers oil on one

  Insert uml design diagrams, use case, classes

Insert UML design diagrams here (use case, class, and sequence diagram).

  Write a program that plays the popular scissor-rock-paper

Write a program that plays the popular scissor-rock-paper game. (A scissor can cut a paper, a rock can knock a scissor, and a paper can wrap a rock.)

  Assessment taskyour task is to develop a java application

assessment taskyour task is to develop a java application that allows the user to read travel booking data from a text

  Derive the class extendedroman from the class roman

For part 'a' the source code for class Roman is attached to this assignment. You do not have to include the method decimalToRoman as you modify this class. Also, class Roman is not used in your test program.

  Create a keyboard driven video game

Create a keyboard driven video game, with you the player in the center of the screen. Shapes will enter the screen and you will need to shoot them. If any of the shapes collide with your ship your game will end.

  Project is for designing and developing a college

project is for designing and developing a college registration program. write a java program to register students for a

  Create a diagram that illustrates how your program works

Create a UML activity diagram that illustrates how your program works. Your diagram must include all the data items in your program.

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