Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ programming Write a program that uses two structures PERSON and STATE to store the following information for multiple states: Create a PERSON structure that
C++ programming
Write a program that uses two structures PERSON and STATE to store the following information for multiple states:
- Create a PERSON structure that consists of:
- First Name,
- Middle Initial, and
- Last Name.
- Create a STATE structure that contains the State's information (Include the NAME structure within the STATE information structure):
- Name
- Abbreviation
- Governor (a person)
- Lieutenant Governor (a person)
- State Capitol
- State Flower
- Number of Congressional Representatives
- Order admitted to the union (e.g. Delaware was first state, Hawaii was 50th)
- Year admitted to the union
In the main program prompt the user for the number of states to enter . The program should accommodate up to 50 states. The program should prompt the user for the input for the states (validate the input). When the program finishes it should list all of the states entered and their information. When you run the program create at least three states.
- VALIDATE USER INPUT!
- Display all state information in a tabular form when all states have been entered.
- Run the program multiple times.
- Submit your source code
- Submit screen shots illustration you ran the program at least three times with different/varying input.
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