This file contains two years of data taken from theHospital, listing the quantity of Patient check-in from Jan. 2020until Dec. 2021. The first three lines of the file are aheader. Each remaining text item is an integer representingthe quantity of Patient check-in in that month (starting in Jan.2018) followed by a 3 letter abbreviation of the month, underscore,and the year. As you work through the problem state anyassumptions.
File reading - read the data in. Store header in astring variable and rest of the data stack of structs by using C++,map, vector, and stack.
Process/Calculations - Store all the months where thequantity of Patient check-in from one month to the next increasedinto a vector of strings. Remember your data is stored in astack so when doing the calculation, you will be doing so backwardin time. Print out all months you found on the screen (inorder of increasing time). Do these calculations after file reading and storing all your datain the original container.
DataFile.txt
Patient check-in timefrom 2021-2022quantity time530 Jan_2020652 Feb_2020742 Mar_2020686 Apr_2020752 Aug_2021716 Sep_2021754 Oct_2021704 Nov_2021658 Dec_2021
This file contains two years of data taken from the Hospital, listing the quantity of Patient check-in from Jan. 2020 un
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am