This is your end of class assignment, any assistance that collaborates towards the solution of the program will cost points. Objectives To learn to code, compile and run a program containing an array of structures. Assignment Plan and code a modular program utilizing an array of structures for the following problem: The results of a survey of the households in Woodland Hills have been made available. Each record contains a four-character identification code, the annual income for the household, and the number of members of the household. Write a program that inputs the information from a file and then presents a MENU of options available to the user. The options should include: 1. Print all of the input data with appropriate column headings. 2. Calculate the average household income and list the identification codes and income of each household whose income is greater than the average. 3. Determine the percentage of households having an income below the poverty level. The formula for determining the poverty level is P - $8000.00 +$500.00 (M-2) where M is the number of members of the household. 4. Print all of the input data sorted by household income. 5. Calculate and print the median household income. The median is the middle value of a sorted list. If the list contains an even number of entries, the median is the average of the two middle values. Input Input the record information into an array of structures. Use the data file below. Display a well-formatted menu of choices for the user. BE SURE TO ADEQUATELY TEST EACH CHOICE ON YOUR MENU. Do NOT test the options in order. Create the data file below in text editor or Notepad.
This is your end of class assignment, any assistance that collaborates towards the solution of the program will cost points. Objectives To learn to code, compile and run a program containing an array of structures. Assignment Plan and code a modular program utilizing an array of structures for the following problem: The results of a survey of the households in Woodland Hills have been made available. Each record contains a four-character identification code, the annual income for the household, and the number of members of the household. Write a program that inputs the information from a file and then presents a MENU of options available to the user. The options should include: 1. Print all of the input data with appropriate column headings. 2. Calculate the average household income and list the identification codes and income of each household whose income is greater than the average. 3. Determine the percentage of households having an income below the poverty level. The formula for determining the poverty level is P - $8000.00 +$500.00 (M-2) where M is the number of members of the household. 4. Print all of the input data sorted by household income. 5. Calculate and print the median household income. The median is the middle value of a sorted list. If the list contains an even number of entries, the median is the average of the two middle values. Input Input the record information into an array of structures. Use the data file below. Display a well-formatted menu of choices for the user. BE SURE TO ADEQUATELY TEST EACH CHOICE ON YOUR MENU. Do NOT test the options in order. Create the data file below in text editor or Notepad.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Please use C++ code and also include the data in the programming .
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education