Question
If you do not mind please a screenshoot of your output. In addition I will appreciate if you can add a comment to explain me
If you do not mind please a screenshoot of your output.
In addition I will appreciate if you can add a comment to explain me the last two part of the problem.Thank you
Using Java design a program that creates a singly linked list of nodes where each node contains an object with information about a hurricane or tropical storm for a certain year. You may choose any year between 1980 and 2022, for either the Atlantic or Pacific Ocean. (Be sure there were at least 5 named storms during the year you choose.) You may not use a List, ArrayList, Vector, or similar type built-in to the chosen programming language. You must create the linked list and its necessary components.
Nodes Node +s: Storm +next: Node +Node() The class for a Node (can be implemented as either a struct or a class) will contain one data field: s (Storm) A Storm object (details below) The node class/struct needs a next pointer/reference to the next node in the linked list. For simplicity, the data field and pointer can be public. You'll also need a no-argument constructor that sets both the Storm field, s, and the next pointer to null. Storms Storm +name: String +maxWind: int +monthFormed: String +category: int +Storm(n:String,w:int,m: String,c:int) Design a class/struct named Storm that contains the following data fields: name (a String) - The name of the hurricane/tropical storm maxWind (int) - The maximum recorded windspeed of the storm month Formed (a String) - The month in which the storm formed category (int) The storm's category (1-5); For named tropical storms, use 0 as the category For simplicity, the data fields can all be public. You'll also need a constructor that accepts four arguments, one argument for each of the four fields.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started