Question: Hey I am a struggling Programming I (C++) student with a TERRIBLE, I repeat, TERRIBLE instrucotor who doesn't even teaches form the computer. I'm not
Hey I am a struggling Programming I (C++) student with a TERRIBLE, I repeat, TERRIBLE instrucotor who doesn't even teaches form the computer. I'm not even a Comp Science major (I'm Electrical Engineering) and I have to take this course! I need instant help before tomorrow! Can someone help me complete this program? There is a file that goes along with it but I'm not able to upload that kind of file. It's name of it is "prez.dat" in case you have to enter it into the program above. PLEASE HELP. #SOS



Pro residential atabas This exercise is designed to introduce the concept of stuctures in C++, to give further practice with strings and arrays, to review the idea of sorting, and to introduce (in an elementary way the concept ofa pointer. The data file "prez dat'" contains a chronological list of U.S. Presidents, one name per record. Thus, the data file looks like WASHINGTON,GEORGE ADAMS,JOHN JEFFERSON,THOMAS BUSH, GEORGE CLINTON, WILLIAM BUSH, GEORGE WALKER. BAMA BARACK. TRUMP,DONALD Your task is to write a C++ program to input this file and to build and output the following database: location chronum pMesident's nane next prez 2 ADAMS, JOHN 21 6 ADAMS, JOHN QUINCY 21 ARTHUR,CHESTER 26 15 BUCHANAN, JAMES 41 BUSH,GEORGE 31 43 BUSH, GEORGE WALKER 34 39 CARTER JIMMY 17 22 CLEVELAND, GROVER 28 (see next page 42 CLINTON, WILLIAM 20 30 COOLIDGE, CALVIN 25 34 EISENHOWERIDNIGHT 32 13 FILLMORE, MILLARD explanation!) 38 FORD GERALD 13 20 GARFIELD,JAMES 19 15 18 GRANT,ULYSSES 10 16 29 HARDING, WARREN 41 9 HARRISON WILLIAM HENRY 18 19 HAYES,RUTHERFORD 19 35 20 1 HOOVER, ERBERT 42 21 7 JACKSON ANDREW 27 22 3 JEFFERSON,THOMAS. 15 23 17 JOHNSON ANDREW 30 36 JOHNSON,LYNDON 24 35 KENNEDY JOHN 25 23 26 166 LINCOLN,ABRAHAM 29 27 4 MADISON, JAMES 36 25 MCKINLEY, WILLIAM 28 29 5 MONROE, JAMES 13 37 NIXON 40 44 OBAMA BARACK PIERCE, FRANKLIN 32 38 11 POLK,JAMES 33 34 40 REAGAN,RONALD 39 35 32 ROOSEVELT FRANKLIN 37 36 26 ROOSEVELT THEODORE 44 27 TAFT, WI 37 ZACHARY 12 38 12 TAY 39 33 TRUMAN, HARRY 45 TRUMP, DONALD 40 33 0 TYLER, J 41 OHN 8 VAN BUREN MARTIN 1 HASHINGTON,GEORGE 43 16 28 WILSON, WOODROrl
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
