(Thumbs up for good work) Please answer in C++. The text file is called Project1Winter.txt and an image for it will be provided at the bottom. Thank you for your time.
CSC2000 Project 1 Please provide a C++ program calculate data from some of the most influential people of the 20th century: Fields are separated by comma. *** Use loop(s) to read the attached text file as your input. Do you hard-code these values into separate variables as would defeat the logic that is needed to do this assignment as designed * Dennis, Ritchie, 9-9-1941, 10-12-2011, C Programming, Unix, 12 Million * Bill, Gates, 10-28-1955, present, Microsoft, Windows, 124 Billion * Steve, Jobs, 2-24-1955, 10-5-2011, Apple, iPad, 10.2 Billion Linus, Torvalds, 12-28-1969, present, Linux,, 150 Million Jeff, Bezos, 1-12-1964, present, Amazon,,183 Billion Fields First name Last name Birthday Death (present means they are still alive) Product 1 Product 2 (could be blank) Net worth (current or at time of death) 1) Please calculate how long each person is or was alive in days. Need to use leap years which have 366 days and occurs every 4 years. 2020 was a leap year. Use 2-10-2021 as your current day. i. Dennis Ritchie - 25600 days ii. Bill Gates - 23487 days Note: you can use the datetime function (#import
). 2) Please calculate how many years the person is or was alive. iv. Dennis Ritchie 70 years old v. Bill Gates - 65 years old vi..... 3) Please rewrite the list from richest to poorer (at least less rich) including their claim to fame. vii. Jeff Bezos (Amazon) is worth roughly $183,000,000,000 viii. Bill Gates (Microsoft) is worth roughly $124,000,000,000 ix. Steve Jobs (Apple) WAS worth roughly $10,200,000,000 X. Note: you will probably need to loops (inner and outer loop) to hold sort these values correctly. 4) Please rewrite list from the oldest to youngest person: xi. Torvals is 52 years old xii. Bezo 57 years old xiii. Output Requirements for each portion. Note: commas in this section are not printed - they are only there for your reference. 1) First Name (10 chars wide), Last Name (15 wide), days alive (15 wide) 2) First Name (10 chars wide) Last name (15 wide), years alive (10 wide) 3) First Name (6 chars wide) Last Name (10 wide) is or WAS worth, net worth 4) Last Name (10 wide), is, age, years old Bill, Gates, 10-28-1955, , Microsoft, Windows, 124 Billion Steve, Jobs, 2-24-1955, 10-5-2011, Apple, iPad, 10.2 Billion Linus, Torvalds, 12-28-1969,, Linux,, 150 Million Dennis, Ritchie, 9-9-1941, 10-12-2011, C Programming, Unix, 12 million Jeff, Bezos, 1-12-1964, present, Amazon, , 183 Billion CSC2000 Project 1 Please provide a C++ program calculate data from some of the most influential people of the 20th century: Fields are separated by comma. *** Use loop(s) to read the attached text file as your input. Do you hard-code these values into separate variables as would defeat the logic that is needed to do this assignment as designed * Dennis, Ritchie, 9-9-1941, 10-12-2011, C Programming, Unix, 12 Million * Bill, Gates, 10-28-1955, present, Microsoft, Windows, 124 Billion * Steve, Jobs, 2-24-1955, 10-5-2011, Apple, iPad, 10.2 Billion Linus, Torvalds, 12-28-1969, present, Linux,, 150 Million Jeff, Bezos, 1-12-1964, present, Amazon,,183 Billion Fields First name Last name Birthday Death (present means they are still alive) Product 1 Product 2 (could be blank) Net worth (current or at time of death) 1) Please calculate how long each person is or was alive in days. Need to use leap years which have 366 days and occurs every 4 years. 2020 was a leap year. Use 2-10-2021 as your current day. i. Dennis Ritchie - 25600 days ii. Bill Gates - 23487 days Note: you can use the datetime function (#import ). 2) Please calculate how many years the person is or was alive. iv. Dennis Ritchie 70 years old v. Bill Gates - 65 years old vi..... 3) Please rewrite the list from richest to poorer (at least less rich) including their claim to fame. vii. Jeff Bezos (Amazon) is worth roughly $183,000,000,000 viii. Bill Gates (Microsoft) is worth roughly $124,000,000,000 ix. Steve Jobs (Apple) WAS worth roughly $10,200,000,000 X. Note: you will probably need to loops (inner and outer loop) to hold sort these values correctly. 4) Please rewrite list from the oldest to youngest person: xi. Torvals is 52 years old xii. Bezo 57 years old xiii. Output Requirements for each portion. Note: commas in this section are not printed - they are only there for your reference. 1) First Name (10 chars wide), Last Name (15 wide), days alive (15 wide) 2) First Name (10 chars wide) Last name (15 wide), years alive (10 wide) 3) First Name (6 chars wide) Last Name (10 wide) is or WAS worth, net worth 4) Last Name (10 wide), is, age, years old Bill, Gates, 10-28-1955, , Microsoft, Windows, 124 Billion Steve, Jobs, 2-24-1955, 10-5-2011, Apple, iPad, 10.2 Billion Linus, Torvalds, 12-28-1969,, Linux,, 150 Million Dennis, Ritchie, 9-9-1941, 10-12-2011, C Programming, Unix, 12 million Jeff, Bezos, 1-12-1964, present, Amazon, , 183 Billion