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

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 7PE
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage