package JAVA;
import [Link];// Import all classes from the [Link] scanner
public class Assignment1 {
public static void main(String[] args) {
// Create a Scanner to read user input
Scanner scanner = new Scanner([Link]);
// Prompt user to enter weight
[Link]("Please enter your weight: ");
// Read the weight value input by the user
double weight = [Link]();
// Check if the weight is less than 0 and print error message if true
if (weight < 0) {
[Link]("Invalid weight");
}
// Check if the weight is less than 60 and print relevant message if true
else if (weight < 60) {
[Link]("You are lightweight");
}
// Check if the weight is less than or equal to 80 and print relevant message if true
else if (weight <= 80) {
[Link]("You are medium weight");
}
// If weight is greater than 80, print the heavyweight message
else {
[Link]("You are heavyweight");
}
// Close the Scanner to release resources
[Link]();
}
}