ITECH1000 | DESIGN DEVELOP AND TEST A SMALL PROCEDURAL JAVA PROGRAM | JAVA

Assessment Details

Your task is to design, develop and test a small application for Santa. Christmas is only weeks away and Santa has decided to open his own Christmas Parcel Delivery System. His first task is to develop a display the end delivery costs.

Stage 1: Design

This stage requires you to prepare documentation that describes the function of the program and how it is to be tested. There is no coding or code testing involved in this stage. A document template has been provided for your use.

Requirements:

  • Read through Stage 2: Program Developmentto obtain details of the requirements of this program.
  • Write an algorithm that describes how the program will operate.
  1. All program requirements – base, standard and advanced – must be included, even if you do not end up including all these requirements in your program code.
  1. The algorithm must be structured logically so that the program would function correctly.

ORDER NOW

  • Prepare and document test cases that can be used to check that the program works correctly, once it has been coded. You do NOT need to run the test cases in this stage; this will occur in Stage 3: Testing.
  1. All program requirements – base, standard and advanced, must be included, even if you do not end up including all these requirements in your program code.
  1. Make sure the test cases include checking of data entered by the user to make sure that only valid data is accepted. If the user enters invalid data, the user should be informed of this and given another chance to enter the data. NB: as we have not covered exception handling, you may assume that the user will always enter an integer.
  1. Test cases should be documented using a template like the one below. You may include extra information if you wish. At this stage, the Actual Result column will be left blank.

Test Case

Expected Result

Actual Result

 

 

 

The user selects the menu option: Setup

The user is prompted to

 

Cost Per KM

enter the travel cost (per

 

 

KM) for a package sent

 

 

Under 100KM…..

 

Stage 2: Program Development

Using the Design Documentation to assist you, develop a Java program that allows a user to set up transport (travel) costs, enter parcels details and then calculates the total cost of sending the parcel. These requirements have been broken into three groups:

  • Base Functionality includes the minimal level of requirements to achieve the essential components of this assignment. This group of requirements focuses on getting the code to work and on using the programming constructs we cover in class. You can expect to use constants, variables, loops, conditional statements and arithmetic operators for these requirements and you should look for opportunities to use these wherever you can. You will not receive full marks for implementing a requirement (even if it works) if you have not used the appropriate programming construct to do so. 

At this level, you can decide if it is easier for you to code everything within a single method, or to modularize it straight away.

  • Standard Functionality ensures the code is modularized, and that method calls are used to ensure the program flows correctly. It allows data to pass from one method to another as parameters.
  • Advanced Functionality provides a challenge task, and is best left until all the other requirements have been addressed. It requires looking at a Java API to find out how to use a class we have not covered in the course, and using this to calculate the delivery date.

You are expected to follow coding conventions, such as proper layout of code, use naming conventions and write meaningful comments throughout your program.

Base Functionality:

1)   Display a welcome message when the program starts

  • The welcome message should have a row of minus (-) and plus (+) signs at the top and the bottom, just long enough to extend over the text. Hint: Use a for loop for this.
  • The second line of the message should read “FEDERATION UNIVERSITY –” and then your location e.g. Mt Helen, IIBIT Sydney, MIT Melbourne. This message should be approximately centred by printing white space first. Hint: Can you modify the for loop fromthe previous step to print the white spaces?
  • The third line of the message should be blank.
  • The fourth line should read “Christmas Parcel Delivery Calculator” and should be approximately centred.
  • The fifth line of the message should be blank
  • The sixth line should read “Developed by” followed by your name and a comma, then “ Student ID ”, then your student id, then finally “ for ITECH1000 Summer 2017”.
  • The seventh line should be blank.
  • The last line should be a repeat of minus (-) and plus (+) sign

Provide a menu from which the user can select to setup travel costs, enter a parcel’s details, display the cost of delivering the parcel or exit the system. This menu should be repeated each time after the user has chosen and completed an option until the user chooses to Exit. The user selects an option by entering the number next to it. If an invalid number is selected, the user is advised and shown the menu again to make another selection.

When the user selects the Setup Cost per KM option, prompt the user to enter the cost (per KM) to transport a package sent 100KM or less. The user should then be prompted to enter the cost (per KM) to transport a package sent over 100KM. After each prompt, the system reads and saves the value from the user before proceeding. When both values have been entered, send a message to the user informing them of what has been set and then show the menu.

When the user selects Enter Parcel, prompt the user to enter the receiver’s name, the weight of the parcel, if they want insurance and how far the parcel is to be sent. Once the user has entered these values, save them for later access, send a message to the user informing them of what has been set and then redisplay the menu.

When the user selects ‘Display Parcel Delivery Costs’, display a calculation of the transportation, insurance and total costs. This uses the data provided in Steps 1 and 2. The following rules will help calculate the total cost:

  • The amount of transport is calculated on the number of KM travelling required times the costs per km.
  • If the user has asked for insurance, this should be calculated by multiplying the weight of the parcel by 0.53
  • The total cost is the combination of the transport and insurance costs
  • The transportation, insurance and total costs should be displayed to 2 decimal places
  • After showing the calculations, the menu should be displayed

When the user selects Exit System, quit the program with a message to the user. The message should be unique.

Modularize the code, correctly using method calls and passing data between methods as parameters.

  • Ensure the code complies with coding standards. This includes
  • Commenting the code so that it is clear what the code is doing and anything potentially unclear to future developers is explained. Hint: A well-documented algorithm/pseudo code/flowchart is anexcellent starting point for this.
  • Replace any “magic numbers” with constants or variables, as appropriate. All values that have consistent values throughout the program should be stored as constants.
  • Indent the code and include white space as required to improve its readability.
  • Ensure all variables and constants have clear names that reflect their purpose
  • Comment the code
  • Enhance the ‘Display Parcel Delivery Costs’ menu item so that it also displays when the parcel will arrive. The methods and attributes needed to complete this task are not explicitly taught in class. This task requires you to apply what you have learnt about reading the Java API to find a way to implement the functionality. The delivery date is calculated using the following rules
  • It takes 1 day to travel 10 KM
  • The current date/time should be used as the send date/time
  • The expected due date/time is displayed to the user

Stage 3: Testing

Using a copy of the test cases developed in Stage 1: Design; test the program you have developed in

Stage 2: Program Development.   Document your results, including both failed and successful tests.

Note: Please do not leave out any failed tests. If you’re testing highlights that your program has not worked correctly, then the failed tests help to demonstrate that you have been testing your program properly.

To show that you have tested your program, include small (but readable) screen captures in your Actual Results as well as any explanatory comments. Microsoft Windows includes a Snipping Tool that is useful for taking captures of the relevant parts of the screen.

You may test your program in phases if you wish. Stage 2: Program Development provides three separate groups of functionality in the requirements, working from the minimal level of requirements through to more advanced concepts. Each of these groups can be tested individually.

Base Functionality:

This phase requires you to check that the base functions (displaying a welcome message when the program starts, showing a menu of options until the user chooses to exit, and Options 1, 2 and 3) have been implemented.

Standard Functionality:

This section does not include any functionality beyond that of the base functionality, however, if you needed to make changes to your code to implement modularization and coding standards, testing is required to ensure that the code still works properly once these changes have been made. Small changes made to code can quite often result in bugs so retesting is important to confirm the correct behaviour has been retained.

Advanced Functionality:

This phase requires testing the code that calculates and displays how long it will take for the parcel to arrive.

ITECH1000| Design, develop & test a small procedural Java program| Java Assignment help

In this particular assessment, the task of the learner is to design, develop and also test a small of the application for the Santa. Since Christmas is just two weeks away, Santa has thought of starting his own Christmas parcel delivery system. The assessment comprises of three stages- design, program development and testing.

The JAVA projects involve an extensive research for searching new information or the implementation about the JAVA supported by the evidence. It helps the students in boosting knowledge about the subject and also creates a high end scope of the exploration of new information. For solving your complex Java paper, you can take the assistance from our ITECH1000| Design develop & test a small procedural Java program| Java Assignment help experts online. You will get a top quality paper at the best price. With the delivery of 100% plagiarism free and original content, the paper will be equipped with all relevant, concise and authentic information that will surely impress your professor and help you to earn top notch grades. Our team is available 24*7. Place your order and get the best academic assistance from our online assignment assistance company.

 

 

Share this post