1. Homepage
  2. Programming
  3. KXO151 Programming & Problem Solving Assignment 2: Healthcheck

KXO151 Programming & Problem Solving Assignment 2: Healthcheck

Engage in a Conversation
UTASKXO151Programming & Problem SolvingJavaHealthcheck

Assignment 2 CourseNana.COM

Deadline for Submission: Maximum Marks Available: Submission: CourseNana.COM

Assignment Type: CourseNana.COM

Requirements: CourseNana.COM

You are required to perform the following tasks: CourseNana.COM

Write a Java application program named Asst2.java which implements a simple 'Healthcheck' program. The details (specifications) of this task are given below. Note that the correctness marks you receive for your program will depend on how well it matches this specification. If you decide to implement something that is more elaborate than specified, you should understand that: CourseNana.COM

  • There will be no marks awarded for the elaborations you have designed and penalties may be applied for confusing/extraneous code. CourseNana.COM

  • Your program MUST STILL meet the basic specifications given below.
    The program is to implement a simple ' Healthcheck’ program. The user will be asked four questions
    CourseNana.COM

    about themselves: CourseNana.COM

  • Their Weight (in kilograms), (to be stored in an int variable). CourseNana.COM

  • Systolic blood pressure (in mmHg), (to be stored in an int variable). CourseNana.COM

  • Diastolic blood pressure (in mmHg), (to be stored in an int variable). CourseNana.COM

  • Heart rate (in beats per minute), (to be stored in an int variable). CourseNana.COM

    The answers to these questions will be used to generate a 'Health check' for the user, this will be displayed on the screen. CourseNana.COM

Specifications of the Program CourseNana.COM

Page 1 of 9 CourseNana.COM

Prompt the user for the 4 pieces of information about themselves (see above) and store the answers in the program. There is no need to check whether the answers are reasonable - that is, if the user enters 1000 for their age, 500 for their systolic or diastolic blood pressure, -and 10 for their heart rate. The program will accept these values and continue. Do not ask the user for any other information. CourseNana.COM

  1. After receiving input from the user, the program should display a summary of the health metrics entered by the user. CourseNana.COM

  2. The program should categorize the user's blood pressure based on the entered systolic and diastolic readings. Blood pressure categories should include: CourseNana.COM

    Low Blood Pressure (Hypotension): CourseNana.COM

    If the systolic blood pressure is less than 90 mmHg AND the diastolic blood pressure is less than 60 mmHg, it indicates low blood pressure.
    Normal Blood Pressure:
    If the systolic blood pressure is between 90 and 120 mmHg AND the diastolic blood pressure is between 60 and 80 mmHg, it indicates normal blood pressure. CourseNana.COM

    Elevated Blood Pressure (Hypertension Stage 1): CourseNana.COM

    If the systolic blood pressure is between 120 and 129 mmHg AND the diastolic blood pressure is between 60 and 80 mmHg, it indicates elevated blood pressure, which is the first stage of hypertension.
    High Blood Pressure (Hypertension Stage 2): CourseNana.COM

    If the systolic blood pressure is between 130 and 139 mmHg OR the diastolic blood pressure is between 80 and 89 mmHg, it indicates high blood pressure, which is the second stage of hypertension.
    Hypertensive Crisis: CourseNana.COM

    If the systolic blood pressure is 140 mmHg or higher OR the diastolic blood pressure is 90 mmHg or higher, it indicates a hypertensive crisis, requiring immediate medical attention. CourseNana.COM

  3. The program should provide feedback on the user's heart rate, considering normal resting heart rate ranges. CourseNana.COM

    Heart Rate Lower Than Normal Resting Heart Rate: CourseNana.COM

    If the heart rate is less than 60 beats per minute (bpm), it indicates that the heart rate is lower than the normal resting heart rate. This could be indicative of bradycardia or other underlying health conditions where the heart beats slower than usual.
    Heart Rate Higher Than Normal Resting Heart Rate: CourseNana.COM

    If the heart rate is greater than 100 bpm, it indicates that the heart rate is higher than the normal resting heart rate. This could be indicative of tachycardia or other underlying health conditions where the heart beats faster than usual.
    Heart Rate Within Normal Range: CourseNana.COM

    If the heart rate falls between 60 and 100 bpm (inclusive), it indicates that the heart rate is within the normal range for a resting heart rate. This range is generally considered normal for most adults at rest. CourseNana.COM

  4. The program should ask the user if they want to monitor their health again after displaying the health metrics summary, blood pressure category, and heart rate feedback. If the user chooses to monitor their health again, the process should repeat (the questions will then be asked again). If the user chooses to do not want to monitor the health again, then program should show a message with total number of health checks done in the session. CourseNana.COM

A sample output of the program is attached to the end of this document. CourseNana.COM

Page 2 of 9 CourseNana.COM

Program Style CourseNana.COM

The program you write for this assignment must be a single class called Asst2 with the code in a file called Asst2.java. There should be a single method (the main() method) in this class. CourseNana.COM

Your program should follow the coding conventions introduced in this unit and shown in the textbook, especially: CourseNana.COM

  • Variable identifiers should start with a lower case letter CourseNana.COM

  • Final variable identifiers should be written all in upper case and should be declared before CourseNana.COM

    all other variables CourseNana.COM

  • Every if-else statement should have a block of code for both the if part and the else part (if used) CourseNana.COM

  • Every loop should have a block of code (if used) CourseNana.COM

  • The program should use final variables as much as possible CourseNana.COM

  • The keyword continue should not be used CourseNana.COM

  • The keyword break should only be used as part of a switch statement (if required) CourseNana.COM

  • Opening and closing braces of a block should be aligned CourseNana.COM

  • All code within a block should be aligned and indented 1 tab stop (approximately 4 spaces) from the braces marking this block CourseNana.COM

    Commenting: CourseNana.COM

There should be a block of header comment which includes at least o file name CourseNana.COM

o your name (in pinyin)
o student UTas id number
o a statement of the purpose of the program CourseNana.COM

  • Each variable declaration should be commented. CourseNana.COM

  • There should be a comment identifying groups of statements that do various parts of the task. CourseNana.COM

  • There should not be a comment stating what every (or nearly every) line of the code does - as in: CourseNana.COM

    num1 = num1 + 1; // add 1 to num1 CourseNana.COM

    Save the Output CourseNana.COM

    Run your program entering data via the keyboard and save the output of your program to a text file using your UTas student id number as the name of the file, for example, 159900.txt (in jGrasp, right mouse-click in the ‘Run I/O’ window and select ‘Save As Text File’). CourseNana.COM

    Important Notes: CourseNana.COM

  • Changing a few variable names, adding different data and / or adding your name to the top of someone else’s code does not make it your own work. See the section on ‘Plagiarism’ below. CourseNana.COM

  • You need to submit 2 files: CourseNana.COM

o your Asst2.java CourseNana.COM

o a text file containing the output of your program using your UTas id number as the name of the file, for example, 159900.txt. CourseNana.COM

o See the section on ‘Submission’ below for more information.
Before you submit your assignment through the KXO151 MyLO website, it is suggested that CourseNana.COM

you make sure the final version of your Java program file compiles and runs as expected – do Page 3 of 9 CourseNana.COM

not change the names of the java file – submit it exactly as you last compiled and ran it. Programs that do not compile and / or run will fail the assignment. If in doubt, you can click on the submitted files, download them from MyLO, and check that they are the files you think they should be. CourseNana.COM

NOTE: The higher marks are reserved for solutions that are highly distinguished from the rest and show an understanding and ability to program using Java that is well above the average. CourseNana.COM

Page 4 of 9 CourseNana.COM

Submission: CourseNana.COM

Your completed solution (your Asst2.java file, plus a text file containing the output of your program using your UTas id number as the name of the file, for example, 159900.txt) must be submitted by the deadline. Assignments must be submitted electronically via KXO151 MyLO website as files that can be read by a text editor such as Microsoft Notepad (submit the *.java file - not the *.class file). CourseNana.COM

2. Copy your 2 assignment files into the new folder; CourseNana.COM

4. Submit your *.rar file to the unit MyLO “Assignments” folder.
5. If WinRAR application is not available on your computer, try to use a similar application to compress the new folder and name it as *.zip, and then submit the *.zip file.
CourseNana.COM

Details of the actual submission procedure are available through the MyLO webpages. CourseNana.COM

Students who believe that this method of submission is unsuitable given their personal circumstances must make alternative arrangements with their Lecturer prior to the submission date. CourseNana.COM

Extensions will only be granted under exceptional conditions, and must be requested with adequate notice on the Request for Extension forms. CourseNana.COM

In submitting your assignment you are agreeing that you have read the ‘Plagiarism’ section below, and that your assignment submission complies with the assignment requirement that it is your own work. CourseNana.COM

Follow the following steps to create a package for your assignment files and then submit CourseNana.COM

your package file: CourseNana.COM

1. On your computer desktop, create a new folder using your name and UTAS ID number. For example, if you name is Jianwen Chen and your UTAS ID number is 159900, then the new folder must CourseNana.COM

be named Jianwen_Chen_159900; CourseNana.COM

3. Use the WinRAR application to compress the new folder and name it as *.rar. For example, Jianwen CourseNana.COM

Chen would name it as Jianwen_Chen_111222.rar. CourseNana.COM

The assessment of Assignment 2 is based on the following criteria: Criteria CourseNana.COM

High Distinction CourseNana.COM

Distinction CourseNana.COM

Excellent programming ability to correctly prompt the user for inputs and store them appropriately. The program employs a loop structure to repeatedly prompt the user until they choose to exit. The program accurately assesses and provide the information as per the requirements. It accurately calculates and displays the total number of times user asks to run the program during the session. CourseNana.COM

Reasonable programming ability to correctly prompt the user for inputs and store them appropriately. The program employs a loop structure to repeatedly prompt the user until they choose to exit. The program reasonably assesses and provide the information as per the requirements. It accurately calculates and displays the total number of times user asks to run the program during the session. CourseNana.COM

Good programming ability to correctly prompt the user for inputs and store them appropriately. The program employs a loop structure to repeatedly prompt the user until they choose to exit. The program assesses and provide the information as per the requirements. It calculates and displays the total number of times user asks to run the program during the session. CourseNana.COM

Some user inputs are prompted or stored incorrectly. Loop structure is partially implemented or contains minor issues. CourseNana.COM

User inputs are not prompted or stored correctly. Loop structure is not implemented or does not function properly. The information assessment is incorrect or incomplete. Total number of program runs is not calculated or displayed. CourseNana.COM

Programming Requirement CourseNana.COM

The
accurately
some
requirements and provide the information as per the requirements. It partially calculates and displays the total number of times user asks to run the program during the session.
CourseNana.COM

program assesses of the CourseNana.COM

Excellent evaluation of the program's organization and visual presentation. Assessment of adherence to coding standards such as naming conventions, use of constants, and in-line comments. Check if the program includes the necessary information in its header. CourseNana.COM

Reasonable evaluation of the program's organization
visual presentation. Assessment of adherence to coding standards such as naming conventions, use of constants, and in-line comments. Check if the program includes the necessary information in its header.
CourseNana.COM

Note CourseNana.COM

PLEASE NOTE: The assignment will receive a single composite mark. The assignment will be accessed from the point of view of the requirements: “Does it meet the requirements, and how well does it do it?” Where there is some inconsistency in that the work does not completely match every sub-criteria within a particular criteria, then the grade reflects the value of the work ‘on average’. CourseNana.COM

KXO151 Assignment Two Marking Scheme (2024) Student Name: UTAS ID: CourseNana.COM

Programming Requirements (for each item there are only 3 possible marks: 100% or 50% or 0%) Requirement Item (Total 10 marks) Mark CourseNana.COM

Out of PR1. Correctly obtain and store user inputs (weight, systolic blood pressure, 4 CourseNana.COM

Good evaluation of the program's organization and visual presentation. Assessment of adherence to coding standards such as naming conventions, use of constants, and in-line comments. Check if the program includes the necessary information in its header. CourseNana.COM

Some evaluation of the program's organization and visual presentation. Assessment of adherence to coding standards such as naming conventions, use of constants, and in-line comments. Check if the program includes the necessary information in its header. CourseNana.COM

No evaluation of the program's organization and visual presentation. Assessment of adherence to coding standards such as naming conventions, use of constants, and in-line comments. Check if the program includes the necessary information in its header. CourseNana.COM

General Requirement CourseNana.COM

The High Distinction grade is reserved for solutions that fully meet the requirements & are highly distinguished from other assignments by their high-quality work & their attention to detail (usually only 10% of students). CourseNana.COM

diastolic blood pressure, heart rate)
PR2. Correctly construct a loop structure PR3. Correctly make the health monitor. CourseNana.COM

Page 8 of 9 CourseNana.COM

CourseNana.COM

PR4. Correctly calculate and display the total number of health checks when a 1 user chooses to exit. CourseNana.COM

General Requirements (for each item there are only 3 possible marks: 100% or 50% or 0%) General Item (Total 5 marks) Mark CourseNana.COM

GR1. Program structure and layout 2 Clear and tidy (1). Somewhat messy but understandable (0.5). Messy (0)
GR2. Good compliance with programming conventions (naming convention, 2 proper use of constants, in-line comments, etc) CourseNana.COM

GR3. Include name, ID, and brief introduction in the program’s header 1 CourseNana.COM

Assignment Raw Total: /15 Lateness Penalty:
Assignment Final: /15
CourseNana.COM

UTAS lateness penalty policy: CourseNana.COM

“Assignments submitted after the deadline will receive a late penalty of 5% of the original available mark for each calendar day (or part day) that the assignment is late. Late submissions will not be accepted more than 10 calendar days after the due date, or after assignments have been returned to other students on a scheduled date, whichever occurs first.” CourseNana.COM

Page 9 of 9  CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
UTAS代写,KXO151代写,Programming & Problem Solving代写,Java代写,Healthcheck代写,UTAS代编,KXO151代编,Programming & Problem Solving代编,Java代编,Healthcheck代编,UTAS代考,KXO151代考,Programming & Problem Solving代考,Java代考,Healthcheck代考,UTAShelp,KXO151help,Programming & Problem Solvinghelp,Javahelp,Healthcheckhelp,UTAS作业代写,KXO151作业代写,Programming & Problem Solving作业代写,Java作业代写,Healthcheck作业代写,UTAS编程代写,KXO151编程代写,Programming & Problem Solving编程代写,Java编程代写,Healthcheck编程代写,UTASprogramming help,KXO151programming help,Programming & Problem Solvingprogramming help,Javaprogramming help,Healthcheckprogramming help,UTASassignment help,KXO151assignment help,Programming & Problem Solvingassignment help,Javaassignment help,Healthcheckassignment help,UTASsolution,KXO151solution,Programming & Problem Solvingsolution,Javasolution,Healthchecksolution,