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 ADEQU

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
icon
Related questions
Question

use C++ code

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.
Transcribed Image Text: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.
Data File
WHVC
AAAA
BURB
CCCC
DATA
EEEE
FADE
GATE
HILO
JURY
KNEL
LIST
MEMM
PQRS
RELM
SOLD
34000.00
Turn in
10500.00
23500.00
15000.00
8000.00
36000.00
8500.00
25000.00
3000.00
100000.00
80000
41000.00
5000.00
18000.00
27500.00
22100.00
5
8
2
3
5
1
1
5
4
3
2
2
4
2
the data file below in text editor or Notepad.
کے
Output
Output the appropriate information for the user. Print out each of these options to a data file to hand in to your instructor.
Top down design with parameters, program listing and program output. Turn in all data files used in the program. You will turn in a copy of all the code you used to complete this
homework as well as an image of the output, make sure you add your name as a comment on the program itself where it is visible in the document you submit.
HOICE
Transcribed Image Text:Data File WHVC AAAA BURB CCCC DATA EEEE FADE GATE HILO JURY KNEL LIST MEMM PQRS RELM SOLD 34000.00 Turn in 10500.00 23500.00 15000.00 8000.00 36000.00 8500.00 25000.00 3000.00 100000.00 80000 41000.00 5000.00 18000.00 27500.00 22100.00 5 8 2 3 5 1 1 5 4 3 2 2 4 2 the data file below in text editor or Notepad. کے Output Output the appropriate information for the user. Print out each of these options to a data file to hand in to your instructor. Top down design with parameters, program listing and program output. Turn in all data files used in the program. You will turn in a copy of all the code you used to complete this homework as well as an image of the output, make sure you add your name as a comment on the program itself where it is visible in the document you submit. HOICE
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Variables
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
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education