Answered step by step
Verified Expert Solution
Link Copied!

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:

  1. Create a PERSON structure that consists of:
    • First Name,
    • Middle Initial, and
    • Last Name.
  2. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago