Answered step by step
Verified Expert Solution
Question
1 Approved Answer
would it be multiple codes or just one code all in one? Programming Assignment 2: Classes Due September 23 A class Hurricane that holds information
would it be multiple codes or just one code all in one?
Programming Assignment 2: Classes Due September 23 A class Hurricane that holds information about a hurricane:year, name, category, pressure, wind and landfall. Two files are provided to you Hurricane.h and Hurricane.cpp Hurricane.h: defines the class Hurricane with its data and function members. Hurricane.cpp: implements some function members of the class Hurricane. Tasks to be performed: 1- Research the hurricane "Nicholas" that hit our region on September 14 and collect its relevant data items. 2 Use these data to populate the default constructor 3- Complete the code for the setters and getters of the class Hurricane. 4 Define a function Print() that takes an object of class Hurricane and displays its data. 5- Define a function strongerThan() that takes two objects of class Hurricane and returns the name of stronger one by comparing their categories. 6- Write the code of the main() Create 3 Hurricane objects corresponding to the hurricanes: Ike, Harvey and Katrina after researching their details. Print the details of each hurricane. Print the strongest hurricane out of the 3. a. b. C. 2/ File: Hurricane.cpp // Programmer: // Class: // Description: This file implements the Hurricane Cluss. #include 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