Write a simple pseudocode for this program:
Prompt the user for their birthday and then determine the number of days between today and the users birthday and calculate their age
Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries.
#include <stdio.h>
#include <stdlib.h>
void findAge(int current_date, int current_month,
int current_year, int birth_date,
int birth_month, int birth_year)
{
int month[] = { 31, 28, 31, 30, 31, 30, 31,
31, 30, 31, 30, 31 };
if (birth_date > current_date) {
current_date = current_date + month[birth_month - 1];
current_month = current_month - 1;
}
if (birth_month > current_month) {
current_year = current_year - 1;
current_month = current_month + 12;
}
int calculated_date = current_date - birth_date;
int calculated_month = current_month - birth_month;
int calculated_year = current_year - birth_year;
int i,daym=0;
for(i=0;i<calculated_month;i++)
{
daym=daym+month[i];
}
printf("Total days are %d
",calculated_year*365+calculated_date+daym);
printf("Present Age Years: %d Months: %d Days:"
" %d ", calculated_year, calculated_month,
calculated_date);
}
int main()
{
int current_date = 12;
int current_month = 1;
int current_year = 2019;
int birth_date = 16;
int birth_month = 12;
int birth_year = 2009;
findAge(current_date, current_month, current_year,
birth_date, birth_month, birth_year);
return 0;
}

Kindly revert for any queries
Thanks.
Write a simple pseudocode for this program: Prompt the user for their birthday and then determine...
code in python: Build a program that askes for the user to input their birthday. Capture the birthdate and do the math to calculate how many days between todays date and their birthday. If their birthday has already passed, show the message “It’s been XX days since your birthday” If their birthday is coming up, show the message “It’s XX days until your birthday” If today is their birthday, show the message “Happy Birthday!” Note: Date math produces a datatype...
Write in python code
Project 11-1: Birthday Calculator Create a program that accepts a name and a birth date and displays the person's birthday the current day, the person's age, and the number of days until the person's next birthday Console Birthday Calculator Enter name: Joel Enter birthday (MM/DD/YY): 2/4/68 Birthday: Sunday, February 04, 1968 Today: Joel is 48 years old. Joel's birthday is in 73 days Tuesday, November 22, 2016 Continue? (y/n): y Enter name: Django Enter birthday (MM/DD/YY):...
write a pseudocode Write a complete program (including MAIN) that prompts/asks the user for a number between 0-255, reads in that number, and coverts it to a number between 0.0-1.0 (e.g. 0 becomes 0.0, 255 becomes 1.0, and 128 becomes 0.5). Note, this program is only a few lines long.
MATLAB script 1) Prompt the user for their first name 2) Prompt the user for their last name 3) Prompt the user for their age Display a sentence that greets the user using their first and last name, and congratulates them for what will be their age on their next birthday. Example: Hello John Smith. Congratulations on turning 45 on your next birthday!
Problem 16. Write a program to prompt the user for a floating point number x and compute the following formula: Problem 18. Write a program fragment that uses nested for loops to produce the following output, making sure that the user input is between 3 and 42.
Write a C program to prompt the user to enter 5 numbers in an array. The program will then calculate the average number in the array and displays the numbers higher than the average value.( using stdio.h).
Prompt 1 Write a program for a simple vending machine. The vending machine contains the following set of drinks (indexed from 1 to 5): Coca-Cola, Sprite, Snapple, Dr. Pepper, Water. A variable byte choice will simulate user input (suppose a user is able to input a number < byte's max size). Your program must output the following: "You have chosen %s" where %s is a placeholder for the name of the drink choser. Prompt 2: Write a program that checks...
Design pseudocode for a program that accepts a single number from the user then outputs one of the following message as appropriate: The number is larger than 0, The number is smaller than 0, The number is 0. HINTS AND NOTES: Be sure to prompt the user for all input.
Instructions Write a program called stocks.cpp. The program should prompt the user for the number of shares purchased, purchase price per share, the commission for the purchase, sale commission paid, and the price the shares were sold at. The program should validate each of these values to ensure they are acceptable (none of these values can be less than zero) and should then pass them to a function called calculateProfit. The function should use the following formula to determine the...
python 3: Write a program to prompt the user for a word and a number. Add that word and number to a dictionary. If the word already exists in the dictionary, print "already entered". When the user types the word list, display all entered words and numbers from the dictionary. When the user types end, end the program.