Question

Write a c++ program
******​IMPORTANT NOTE: DO NOT USE DO NOTTT USE POINTERS,STRING LIBRARY, PRINTF AND SCANF*************

Part A

Create a program that does the following: 1 Create a two-dimensional array of characters that has 78 rows, each of which will store, with an initialization list, the name of a PR municipality. Be sure to indicate the number of columns in this array large enough to fit the longest name, considering there must be a space for the ' 0 '.

Note: An attached, editable document with the names of all municipalities is included, so that you can copy-paste this information into your program and do not have to type it.

(2) Create a second arrangement, in this case a one-dimensional array of integers, which will be used to store the number of households in each municipality that submitted a disaster relief request to FEMA.

(3) Ask the user for the number of households in each municipality who submitted a disaster relief request to FEMA and will store that information in the entire arrangement described in Part 2) of this exercise. Validate that there is no negative value. The request for this data will look like this: among the number of households that I request helps FEMA for each attached municipality:

Aguada:

Aguadilla:

Aguas Buenas:

... ...

(4) Calculate the number of total households that submitted a disaster relief request to FEMA. Do this in a function that sums up the contents of all the cells in the integer array containing the number of households in each municipality that submitted a disaster relief request to FEMA.

(5) Identify the fewest number of applications for disaster to FEMA in the municipalities. Do this in a role that identifies and returns the lowest number of requests to FEMA.

(6) Identify more disaster requests to FEMA in the municipalities. Do this in a role that identifies and returns the largest number of requests to FEMA

(7) Print a report that looks as shown in the example below. Note that municipalities with fewer requests are identified with (-), and those with the largest number of applications are marked with (). To place the (-) or the (), according to the application, the number of households in a municipality with the minor identified in part 4 is compared, and with the largest identified in part 5 of this exercise to know if it applies to place the (-) or ().

Note: When you develop your program, use only the first 10 municipalities (put the others in comment on your program). This allows it to be able to make "debugging" with a limited number of municipalities.

You must document the code properly and submit an execution to show that the program works well.

O4 CAWINDOWSsystem32 cmd.exe Entre el n-mero de hogares que solicito ayuda a FEMA para cada municipio Adjuntas: 200 Aguada: 150 guadilla: 130 Aguas Buenas: 20 Aibonito: 350 Anasco: 20e Arecibo: 500 Arroyo: 100 arceloneta: 15e arranquitas: 16e RE PORTE DEL MJME RODE OGARES QlJE SOL IC I TARON ASISTENCIAIOR DESASTRE A FEMA, POR颅NICIPIO djuntas guada guadi11a guas Buenas Aibonito Anasco recibo 200 150 130 200 350 2ee 569 Arroyo arceloneta -15e 100 arranquitas TOTAL DE SOLICITUDES PARA PR- 208e ress any key to continue .

(Part B) – (This part is not programming but is visualization) draw the two arrangements you used in the implementation of this program (only using the first 10 municipalities). For integer arrangement, place the quantities that the user entered the array when the program ran (must match the code execution test that is requested above).

Below is a list of the 78 municipalities of Puerto Rico.


"Adjuntas", "Aguada", "Aguadilla", "Aguas Buenas", "Aibonito", "Anasco", "Arecibo", "Arroyo", "Barceloneta", "Barranquitas", "Bayamón", "Cabo Rojo", "Caguas", "Camuy", "Canovanas", "Carolina", "Catano", "Cayey", "Ceiba", "Ciales", "Cidra", "Coamo", "Comerio", "Corozal", "Culebra", "Dorado", "Fajardo", "Florida", "Guanica", "Guayama", "Guayanilla", "Guaynabo", "Gurabo", "Hatillo", "Hormigueros", "Humacao", "Isabela", "Jayuya", "Juana Diaz", "Juncos", "Lajas", "Lares", "Las Marias", "Las Piedras", "Loiza", "Luquillo", "Manati", "Maricao", "Maunabo", "Mayaguez", "Moca", "Morovis", "Naguabo", "Naranjito", "Orocovis", "Patillas", "Penuelas", "Ponce", "Quebradillas", "Rincon", "Rio Grande", "Sabana Grande", "Salinas", "San German", "San Juan", "San Lorenzo", "San Sebastian", "Santa Isabel", "Toa Alta", "Toa Baja", "Trujillo Alto", "Utuado", "Vega Alta", "Vega Baja", "Vieques", "Villalba", "Yabucoa", "Yauco"

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Write a c++ program ******​IMPORTANT NOTE: DO NOT USE DO NOTTT USE POINTERS,STRING LIBRARY, PRINTF AND...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT