Develop a java console application using the netbeans

Assignment Help JAVA Programming
Reference no: EM132290449

Assessment Task

You are to develop a Java console application using the NetBeans 8.2 IDE. The application is tocalculate and classifyMAP (Mean Arterial Pressure) for a randomised subset of individuals in a clinical trial. The number of individualsin the subset is not fixed, but will be in the range 5-10.

MAP is determined from an individual's blood pressure using the following formula:
MAP = 1.0/3.0 * SBP + 2.0/3.0 * DBP
where
• MAP is the mean arterial pressure,
• SBP is the systolic blood pressure, and
• DBP is the diastolic blood pressure.
Normal blood pressure for a healthy adult is typically between 90 mmHg and 120 mmHg for systolic blood pressure and between 60 mmHg and 80 for diastolic blood pressure.The normal mean arterial pressure in healthy patients should be in the range of between 70 and 100 mmHg.
For each person in the trial, you are to enter their identifier, together with their SBP (in mmHg) and DBP (in mmHg).SBP is always greater than DBP; if this is not the case, an error message is to be displayed and no processing is to be performed for that particular record.The identifier is an integer in the range 1-100. Blood pressures are to be stored in variables of type double. The application is to then calculate and display the trial identifier and the MAP value, together with a message indicating whether the MAP value is high, normal or low. Whenall data has been entered, a summary report consisting of
1. The lowest MAP value
2. The highest MAP value
3. The average MAP value
is to be displayed. Values are to be displayed to one decimal place, e.g. 10.1, NOT 10.123456789.
Only language constructs covered in weeks 1-6 are to be used. In particular, the use of arrays will be penalised.
The application is to use the following classes and methods:
public class MAPCalculator {

public MAPCalculator() {
// no code required
}

public double value(double sbp, double dbp) {
// return MAP value
}

public String category(double map) {
// return one of "high", "normal" or "low"
}

}

public class Assignment1 {
public static void main(String[] args) {
// create scanner object
// create MAP calculator
// read and process records
// display summary results
}
}
The classes are to be included in your NetBeans project in two separate source files - Assignment1.java and MAPCalculator.java.

You are to submit a zipped folder containing

- Your zipped NetBeans project folder. Details of how to do this are available in the NetBeans FAQ on the unit website.

- Report.docx. This file is to contain the following Sections:

1. Limitations

2. Test plan

3. Test results

Student name, student ID number, unit name andunit code are to be included on the title page., a test planand test results.

The limitations section is to specify any limitations that your program has in terms of calculations and data validation. With respect to data validation, note that the only validation that you are required to do is to check whether the SBP is greater than the DBP.

The test plan is to contain a comprehensive list of program functionality to be tested, the input values to be used to test each item of functionality, the expected output from the test and the actual output from the test. Note that because MAP is calculated as a floating point value, we can't (in general) test it for equality. What this means in terms of your test plan is that you do not need to test the category end points

The test results section is to contain screenshots to demonstrate that the program generates the actual outputs shown in the test plan.

Verified Expert

The assingment is of Java programming. The program is used to fin the mean arterial pressure from the inputted systolic and diastolic blood pressure value. The program allows to enter data for multiple users and at the end display the summary where we find the lowest and highest MAP value and also the average MAP value.

Reference no: EM132290449

Questions Cloud

Find the best combination of motors to yield highest profit : A small motor manufacturer makes two types of motors, models A and B. find the best combination of motors to yield the highest profit.
Project an agency future financial stability : What information do you need to project an agency's future financial stability?
Provide a variety of perspectives on your topic : First, locate and record citations to books, periodicals, and documents that may contain useful information and ideas on your topic.
Real data to make real decisions for companies every day : We are on threshold of using real data to make real decisions for companies every day. Any personal encounters you have had and discuss pros and cons.
Develop a java console application using the netbeans : COIT20245 - Introduction to Programming - Central Queensland University - Develop a Java console application using the NetBeans 8.2 IDE
Can a student be motivated to learn : There are three (3) questions below for which you provide a thoughtful yet brief response considering the Discussion Forum Guidelines and APA writing style.
Some vendors serve multiple types of food and beverage : Create ERD The soccer league consists of teams, each of which has a unique team name. Some vendors serve multiple types of food and beverage.
Describe reduce project scope strategy : Describe “Reduce project scope” strategy. What would be some of the risks associated with such an approach?
Will more be able to have their writing go straight to ebook : Do you think authors always need to go through a major publisher to be successful? Will more be able to have their writing go straight to e-books?

Reviews

len2290449

4/22/2019 3:04:31 AM

For Language Use, a checklist is given, but not a detailed marks breakdown. For checklist item non-compliance, you will be penalised 0.5 – 1 mark depending on the degree of non-compliance. Note that it is your responsibility to ensure that source code files are included in your submission as well as report.docx. If either are missing, the assignment will not be marked.

len2290449

4/22/2019 3:04:23 AM

Marking Criteria Criteria Marks Allocated 1. Calculation of results /3 1 Language use /7 Variable declarations Class definition/object creation Loop control Selection statement use Method definition and use Reading input Display of results 2 Layout and documentation Spacing and indentation conventions /1 Naming conventions /1 Comments /3 3 Report Limitations /1 Test Plan and Test Results /4 Sub-Total /20 Penalties Does not compile: up to 20 marks Partial implementation: up to 20 marks Late submission : 5% (1 mark) / day or part of a day Total /20

len2290449

4/22/2019 3:04:15 AM

The test plan is to contain a comprehensive list of program functionality to be tested, the input values to be used to test each item of functionality, the expected output from the test and the actual output from the test. Note that because MAP is calculated as a floating point value, we can’t (in general) test it for equality. What this means in terms of your test plan is that you do not need to test the category end points The test results section is to contain screenshots to demonstrate that the program generates the actual outputs shown in the test plan.

len2290449

4/22/2019 3:04:09 AM

You are to submit a zipped folder containing • Your zipped NetBeans project folder. Details of how to do this are available in the NetBeans FAQ on the unit website. • Report.docx. This file is to contain the following Sections: 1. Limitations 2. Test plan 3. Test results Student name, student ID number, unit name andunit code are to be included on the title page., a test planand test results. The limitations section is to specify any limitations that your program has in terms of calculations and data validation. With respect to data validation, note that the only validation that you are required to do is to check whether the SBP is greater than the DBP.

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