This is my second time uploading this assignment and when I look at the answers to other people's questions, I see that it is wrong. I SEND THIS QUESTION OVER AND OVER AGAIN BUT I DIDN'T GET ANY RECEIVE! Could you please solve the question I added? Please do not copy and paste other answers or give irrelevant answers.I've been waiting for an answer for a week, it's very urgent.
You should submit two files:
1- a .h file with your source code for the task, and
2- a .cpp file with in which you include your header and try some of the functions.
us_states.xml file:
Task - US database An XML file is a text file in which data are stored with a specific protocol. XML stands for extensible Markup Language, and you will use it in web-based language classes later in your studies. In an XML file, you will find the data structured between specific tags, for example:
this line represents an element called student, and its tags are the student's first name, last name, and favorite class; the value of these tags is the data represented in the file. Each element starts with a . In the text file "us_states.xml" you will find the complete list of all the states in the United States of America. For each state, you have the following information: Name of the state Abbreviation Capital Date of admission to the union Most populous city Population Area in square miles One or two time zone, depending on how big the state is Whether or not the state follows daylight saving time Implement a header file containing a function for each of the following subtask: Subtask 1: Read the file and stores all the data in a table (therefore, create a struct to store the data). Value of subtask: 40/100 Subtask 2: Given the name of the state, return all its data in a string formatted EXACTLY like in the following example: Input: "Alaska" Output: State: Alaska Abbreviation: AL Capital: Juneau Date of admission: January 01, 1959 Most populous city: Anchorage Population: 698473 Area: 656525 mi2 Time zones: AKST (UTC-69), HST (UTC-10) DST: Yes If the format of the string is not exactly like this, you will get zero for this sub task. Value of subtask: 10/100 Subtask 3: Return a string with the list of all the capital cities in alphabetical order, followed by the abbreviation of the state between parenthesis, formatted EXACTLY like in the following example: Albany (NY) Annapolis (MD) If the format of the string is not exactly like this, you will get zero for this sub task. Value of subtask: 10/100 Subtask 4: Return a string with the list of the five largest states (separated them with a new line), formatted EXACTLY like in the following example: Alaska Texas California If the format of the string is not exactly like this, you will get zero for this sub task. Value of subtask: 10/100 Subtask 5: Return a string with the list of states ordered based on their date of admission to the union (from the oldest to the newest) followed by the date of admission. The string should be formatted EXACLY like: Delaware -> December 07, 1787 Pennsylvania -> December 12, 1787 New Jersey -> December 18, 1787 If the format of the string is not exactly like this, you will get zero for this sub task. Value of subtask: 10/100 Subtask 6: Return the overall area of the United States of America, in square miles. Value of subtask: 10/100 Subtask 7: Return the overall population of the United States of America. Value of subtask: 10/100 NOTE: I will not upload a solution for this task