Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include <stdio.h> int main(void) { int userAgeYears = 0; int userAgeDays = 0; p

ID: 3667393 • Letter: #

Question

#include <stdio.h>

int main(void) {
   int userAgeYears = 0;
   int userAgeDays = 0;

   printf("Enter your age in years: ");
   scanf("%d", &userAgeYears);

   userAgeDays = userAgeYears * 365;

   printf("You are %d days old. ", userAgeDays);

   return 0;
}

Create different versions of the program that:

Calculates the user's age in minutes and seconds.

Estimates the approximate number of times the user's heart has beat in his/her lifetime using an average heart rate of 72 beats per minutes.

Estimates the number of times the person has sneezed in his/her lifetime (research on the Internet to obtain a daily estimate).

Estimates the number of calories that the person has expended in his/her lifetime (research on the Internet to obtain a daily estimate). Also calculate the number of sandwiches (or other common food item) that equals that number of calories.

Be creative: Pick other health-related statistic. Try searching the Internet to determine how to calculate that data, and create a program to perform that calculation. The program can ask the user to enter any information needed to perform the calculation.

please C programming language

Explanation / Answer

#include <stdio.h>

int main(void) {
   int userAgeYears = 0;
   int userAgeDays = 0;
userAgeInSeconds=0;

userAgeInMinutes=0;

HeatBeat=0
   printf("Enter your age in years: ");
   scanf("%d", &userAgeYears);

   userAgeDays = userAgeYears * 365;

userAgeInMinutes = userAgeDays*24*60;

userAgeInSeconds = userAgeDays*24*60*60;

HeatBeat= userAgeInMinutes*72;

   printf("You are %d days old. ", userAgeDays);

printf("The heart Beats till the date is . ",HeartBeat);

   return 0;
}