Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the C code of the output based on the instructions. The language must be C. Please make sure that there is no error

I need the C code of the output based on the instructions. The language must be C. Please make sure that there is no error or warning while runing the code. The pictures of the instructions and the output is attached.
image text in transcribed
image text in transcribed
Instructions Download or clone workshop 5 (WS05) from https://github.com/Seneca-144100/IPC-Workshops Note: If you use the download option, make sure you EXTRACT the files from the .zip archive file 1. Review the "Part-1 Output Example" (next section) to see how this program is expected to work 2. Code your program in the file named "w5P1.c" IMPORTANT: Do NOT use arrays in this workshopI 3. After the system library \#include, and before the main function, define two (2) macros: \#define MIN_YEAR 2012 Hdefine MAX_YEAR 2022 4. Inside the main function, declare two (2) unmodifiable integer variables "JAN" and "DEC" representing the first and last months of the year respectively (initialize "JAN" to 1 and "DEC" to 12) 5. Display the title for the well-being log application 6. Nest inside an iteration construct the following: a) Display the following message: >Set the year and month for the well-being log(MrYMM):** Log date set! ***1it day of the month entered by the user Hint: You need to implement alternative/multiple selection to map the month integer value to the respective 3 character month representation. There are a couple of constructs available to you that will make this possiblel Part-1 Output Example (Note: Use the YELLOW highlighted user-input data for submission) General Well-being Log Set the year and month for the well-being log (YYY MM): 20111 ERROR: The year must be between 2012 and 2022 inclusive Set the year and month for the well-being log (YYYY MM): 20231 ERROR: The year must be between 2012 and 2022 inclusive Set the year and month for the well-being log (YMY MM) : 2022 ERROR: Jan. (1) - Dec. (12) Set the year and month for the well-being log (YYY MM): 202213 ERROR: Jan. (1) - Dec. (12) Set the year and month for the well-being log (YMY MM): 20110 ERROR: The year must be between 2012 and 2022 inclusive ERROR: Jan. (1) - DeC. (12) Set the year and month for the wel1-being log (YYY MM): 202313 ERROR: The year must be between 2012 and 2022 inclusive ERROR: Jan. (1) - Dec. (12) Set the year and month for the well-being log (YYY MM): 20222 Log date set! Log starting date: 2022-FEB-01

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions