Question: Please provide a C++ program calculate data from some of the most influential people of the 20 th century: Fields are separated by comma. ***
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.
- Dennis Ritchie - 25600 days
- Bill Gates 23487 days
- ..
Note: you can use the datetime function (#import
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
