Question: Write a program that develops and manipulates data about polling places in struct variables. Create a struct named PollingPlace with these data elements: ( 1
Write a program that develops and manipulates data about polling places in struct variables.
Create a struct named "PollingPlace" with these data elements: street address, a string; location eg school,
firehouse, community center a string; number of voting machines, an int; and expected number of voters at
that location, an int.
Write a function named "PopulatePollingPlace" which, when called by the main function, will: create a temporar
struct variable; get input from the user to populate the four data members of the struct; and return that struc
to the main program. This function doesn't receive any formal parameters, but definitely returns a struct.
Write a function named "OutputPollingPlace" which, when called by the main function, will output the polling
place's data in a nice, presentable format. This function receives a struct object as its formal parameter. It does not
return anything.
Write your main function to demonstrate this struct by creating and displaying at least struct objects.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
