#include #include #include using namespace std; int main() { string name[] = { "Maryland", // 0 "Massachusetts", // 1 "New Jersey", // 2 "New Hampshire", // 3 "California", // 4 "Hawaii", // 5 "Washington", // 6 "Connecticut", // 7 "Colorado", // 8 "Virginia", // 9 "Utah", //10 "Alaska", //11 "Minnesota", //12 "New York", //13 "Rhode Island", //14 "Vermont", //15 "Illinois", //16 "Oregon", //17 "Delaware", //18 "Arizona", //19 "Pennsylvania", //20 "Wisconsin", //21 "Texas", //22 "Nebraska", //23 "Georgia", //24 "North Dakota", //25 "Idaho", //26 "Nevada", //27 "South Dakota", //28 "Iowa", //29 "Wyoming", //30 "Maine", //31 "Kansas", //32 "Michigan", //33 "Montana", //34 "Florida", //35 "Indiana", //36 "Ohio", //37 "North Carolina", //38 "Missouri", //39 "Tennessee", //40 "South Carolina", //41 "Oklahoma", //42 "Kentucky", //43 "New Mexico", //44 "Alabama", //45 "Arkansas", //46 "Louisiana", //47 "West Virginia", //48 "Mississippi" //49 }; //2021 median household income, in dollars //https://en.wikipedia.org/wiki/List_of_U.S._states_and_territories_by_income int income[] { 90203, // 0 Maryland 89645, // 1 Massachusetts 89296, // 2 New Jersey 88465, // 3 New Hampshire 84907, // 4 California 84857, // 5 Hawaii 84247, // 6 Washington 83771, // 7 Connecticut 82254, // 8 Colorado 80963, // 9 Virginia 79449, //10 Utah 77845, //11 Alaska 77720, //12 Minnesota 74314, //13 New York 74008, //14 Rhode Island 72431, //15 Vermont 72205, //16 Illinois 71562, //17 Oregon 71091, //18 Delaware 69056, //19 Arizona 68957, //20 Pennsylvania 67125, //21 Wisconsin 66962, //22 Texas 66817, //23 Nebraska 66559, //24 Georgia 66519, //25 North Dakota 66474, //26 Idaho 66274, //27 Nevada 66143, //28 South Dakota 65600, //29 Iowa 65204, //30 Wyoming 64767, //31 Maine 64124, //32 Kansas 63498, //33 Michigan 63249, //34 Montana 63062, //35 Florida 62743, //36 Indiana 62262, //37 Ohio 61972, //38 North Carolina 61847, //39 Missouri 59695, //40 Tennessee 59318, //41 South Carolina 55826, //42 Oklahoma 55573, //43 Kentucky 53992, //44 New Mexico 53913, //45 Alabama 52528, //46 Arkansas 52087, //47 Louisiana 51248, //48 West Virginia 48716 //49 Mississippi }; }