PLEAS WRITE THIS IN C The Federation has asked you to develop a program to keep
ID: 643392 • Letter: P
Question
PLEAS WRITE THIS IN C
The Federation has asked you to develop a program to keep track of its
officers. A sample of the kind of information for each officer is
shown below.
Name: Mr. James Tiberius Kirk
Date of Birth: March 22, 2233
Address: 23 Falling Rock,
Riverside, Iowa 52327-0021
Planet Earth
Rank: Captain
Ship: USS Enterprise
Nickname: Jim
Favorite Saying: "Bones???"
Starting Stardate: 41153.7
Martial Status: Single
Starfleet Graduation Date: June 23, 2212
Name: Mr. Leonard A. McCoy Jr.
Date of Birth: 7/8/2227
Address: 8745 South Road
Jackson, Mississippi 39201-0001
Planet Earth
Rank: Chief Medical Officer
Ship: USS Enterprise
Nickname: Bones
Favorite Saying: "He's dead Jim."
Starting Stardate: 41151.8
Marital Status: Divorced
Starfleet Graduation Date: June 21, 2210
Provide the code need to DECLARE an array of structures given the above
information. Don't write a program and don't worry about initializing
the structure based on the information above.
Be careful on how you declare the members of a structure. Grading
will be based on how the flexibility of your design (i.e., define many structures and have structures within structures if necessary).
Note: Don't go overboard such as having a structure with only one member
just to create many structures.
Explanation / Answer
char[20] name;
char[20] dob;
char[200] address;
char[20] rank;
char[20] ship;
char[20] nickname;
char[100] favsaying;
char[100] startingStardate;
char[20] maritalStatus;
char[20] starFleetGradDate;
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.