Question: Compiler C++ In-Class Assignment (2-15-18) (1) (Protected View) Enable Editing met can contain viruses. Unless you need to edit, t's safer to stay in Protected
In-Class Assignment (2-15-18) (1) (Protected View) Enable Editing met can contain viruses. Unless you need to edit, t's safer to stay in Protected View In-Class Assignment (2-15-18) Tomorrow's Date Write a program that creates a struct named Date. This struct should possess 3 members (month, day, and year), and each member should be initialized with the following three instances: (2, 13, 2017), (7, 31, 2008), and (12, 31, 1999). This program should also possess a function called nextDate() that accepts each member as an argument and updates the date to the following day's date and prints it to the screen. For this assignment, please refrain for using any of the built-in time and date functions provided by C++. Let's assume for this assignment that all months have 31 days each. Your output should resemble the following: The current date is: 2-13-2017 The new date is: 2-14-2017 the current date is: 7-31-2008 The new date is: 8-1-2008 The current date is: 12-31-1999 The new date is: 1-1-2000 End of document
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
