write c++ program
Odette's typhoon-related casualties. CREATE AN ARRAY PROGRAM that accepts the following data: the names of typhoon Odette victims, their ages, and their current status (A – alive, D – deceased, I – wounded, and M – missing). Your arrays should be proportionate to the barangay's expected population. Enter the barangay's name and the typhoon's projected total population. Following data entry, show the following information about each person according to their name - their name (in alphabetical order), their condition, the number of individuals who survived, died, were injured, or went missing, as well as their proportion of the total population.
An Earthquake's Accident
Barangay Name:____
Estimated NO. of residents:________
Name:____
Age:__
(A – alive, D – deceased, I – wounded, and M – missing)___
Additional Entry (Y/N)? Y
Name:____
Age:____
(A – alive, D – deceased, I – wounded, and M – missing):___
:
:
Name:____
Age:____
(A – alive, D – deceased, I – wounded, and M – missing):___
Additional Entry (Y/N)?
list of Victims/Casualties
Name Age Condition
_____ ____ _________
_____ ____ _________
: : :
_____ ____ _______
Total Number of Victims:
Alive:____ - ____%
Deceased:____ - _____%
Injured:____ - _____%
Missing: ____ -_____%
Notes:
Validate data entry as necessary.
Uppercase letters must be used for all names and conditions.
When conditions are printed in a list, they must be translated to the following values: ALIVE, DECEASED, INJURED, or MISSING.
Step by stepSolved in 3 steps with 7 images
- PLEASE HELP ME WITH THIS! THANK YOU! Develop a program that will define and store a student record. The data will be entered by the user. Afterwards, calculate and display the GPA of each student. You will need to use structure with array. In case you don't know how to calculate GPA, here's the formula: Sample Console Input Expected Console Output 2John Anthony10912345ECEPhysics1003Mathematics702Geology501Jose10854321CPEPhysics803Mathematics602Geology901 Enter number of students to record: 2student name: John AnthonyID number: 10912345degree: ECEcourse 1 name: Physicscourse 1 grade: 100course 1 total units: 3course 2 name: Mathematicscourse 2 grade: 70course 2 total units: 2course 3 name: Geologycourse 3 grade: 50course 3 total units: 1student name: JoseID number: 10854321degree: CPEcourse 1 name: Physicscourse 1 grade: 80course 1 total units: 3course 2 name: Mathematicscourse 2 grade: 60course 2 total units: 2course 3 name: Geologycourse 3 grade: 90course 3 total units:…arrow_forwardEach of two players rolls a dice and whoever rolls the highest number (between 1 and 6 inclusive) gets 4 points, and if it is a draw, both players get 2 points. The player with the highest number of points after 10 rounds of the game is the winner (or the game could be drawn). The following arrays contain the results of dice rolls of each of two players in 10 consecutive rounds of the game.player1=[3, 2, 5, 6, 2, 5, 1, 6, 4, 5]player2=[4, 2, 4, 3, 6, 5, 3, 2, 4, 1] Write a MATLAB program that computes the running total points of each player and displays one of the following messages (whichever applies) after each round n for n = 1, 2, . . . , 10:Player 1 is leadingPlayer 2 is leadingIt is a tie [Hint: You should use an if construct.]Also, at the end of your program, use the find command to identify (and display) the rounds in which dice rolls were the same for the two players, and use the length command to compute (and display) the number of such rounds. Include appropriate headings in…arrow_forwardQUESTION 7 1) Write a maxConsecutiveDiff function which returns the maximum difference between any two consecutive values in the array. Consecutive values are next to each other in an array (+/- 1 index) This function should accept all required data as parameters. Examples If the array is 17 15 16 11 14 the maximum consecutive difference is 5 which is the difference between 16 and 11. If the array is 10 13 11 12 19 the maximum consecutive difference is 7 which is the difference between 12 and 19.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY