Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN LANGUAGE C NEED HELP NOW PLEASE. I WILL GIVE GOOD REVIEW Problem 1: Seconds birthday calculator You are to make a calculator that finds

IN LANGUAGE C
NEED HELP NOW PLEASE. I WILL GIVE GOOD REVIEW
image text in transcribed
Problem 1: Seconds birthday calculator You are to make a calculator that finds important birthday milestones to celebrate. These are your thousandth-second, millionth-second, billionth-second, and trillionth-second of life (though you may not live that long). Develop code that a) Prompts the user to enter his/her birthday in this format: month/day/year. b) Prints out the user's thousandth-second, millionth-second, billionth-second, and trillionthsecond birthday. c) Your code uses a function with the following prototype. void secondBday(long int seconds, int day, int month, int year); The function receives as input your birth date (day month year) and a number of seconds elapsed and prints the date after the seconds have elapsed. Sample function output On input date 110 (corresponding to date 1/1/0000 ) and 1,000 seconds, the function would print: Your 1000 th-second birthday is on 1/1/0 On input 110 (corresponding to date 1/1/0000 ) and 1,000,000 seconds, the function would print: Your 1000000 th-second birthday is on 1/12/0 Sample code execution: Red text indicates information entered by the user Enter your birthday: 4/30/2001 Your 1000 th-second birthday is on 4/30/2001 Your 1000000 th-second birthday is on 5/11/2001 Your 1000000000 th-second birthday is on 6/24/2033 Your 1000000000000 th-second birthday is on 7/14/34151 Simplifying assumptions and hints - To simplify your code make the following assumptions. Every month has 30 days, making the year 360 days. - Convert the number of seconds to days by dividing the number of seconds with 86,400 . - To find how many years will elapse, you can divide the number of days by 360 - You can then find the remaining days using modulo 360

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

Students also viewed these Databases questions

Question

What are the purposes of strategic planning?

Answered: 1 week ago