Answered step by step
Verified Expert Solution
Question
1 Approved Answer
days Days Lab Construct a C program, days.c, which prompts the user to enter a number of days (2347) and computes the number of years,
days
Days Lab Construct a C program, days.c, which prompts the user to enter a number of days (2347) and computes the number of years, months, weeks, and days entered number. You may assume that a year contains of 365 days and am contains 30 days For example, if the user enters 997 days, your program perform the necessa calculations and generate the following output: years: 2 months: 8 weeks 3 days: 6 Make sure you are creating a C program and not a C++ program. The .c suffix to your source code will invoke the C compiler while the .cpp suffix will invoke the C++ compiler. As this is a class in C and not C++, please make sure your source code uses the .c suffix. You should not be using any global variables in your program. A global variable is a variable declared outside of main(). Output from your program should be sent to the terminal window (your screen) as well as the requested csis.txt output file. Be sure to read the document on Capturing Program Output. Your full name must appear as a comment in the source file that contains main(). Be sure to include the csis.txt output file in your zip archive Focus on Fundamentals of Programming with C Page 109Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started