Question: In C++ please. Thanks. You are tasked with creating a New Years Countdown program in C++. The program should use pointers to track the number
In C++ please. Thanks.

You are tasked with creating a New Years Countdown program in C++. The program should use pointers to track the number of days remaining until New Years. Write a C++ program that includes the following: - Declare an integer variable daysUntilNewYears and initialize it with the number of days remaining until New Years (e.g., 10 days). - Create a pointer (int* daysPtr) and make it point to the daysUntilNewYears variable. - Implement a function newYearsCountdown that takes a pointer to an integer as a parameter. Inside the function, use a loop to simulate a countdown by printing the days remaining each day and decrementing the value pointed to by the pointer. Stop the countdown when there are no more days remaining. - In the main function, print a welcome message and then call the newYearsCountdown function with the pointer to track the days until New Years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
