122k views
5 votes
PLEASE HELP THIS IS URGENT

Write a program that asks for your age in years, months, and days and writes out your age in seconds. Do this by calculating the number of total days you have been alive, then multiply this by the number of hours per day (24), the number of minutes per hour (60), and the number of seconds per minute (60). Assume that there are 365 days per year (ignore leap years). But correctly take account of the different number of days in different months. If the user enters 5 for the number of months, add up the number of days in the first 5 months: 31 + 28 + 31 + 30 + 31

A human lifespan is about 2.5 billion seconds (2.5 billion heart-beats).


PLEASE HELP THIS IS URGENT
Sales of movie tickets has been dropping! In an effort to attract more viewers, the theater has started a new policy charging $4.00 for all tickets sold after 2200 (10PM). However, no children may purchase tickets after that time. Add logic to the program of exercise 8 to implement the new policy.

User Damccull
by
4.6k points

1 Answer

3 votes

Answer:

Sales of movie tickets has been dropping! In an effort to attract more viewers, the theater has started a new policy charging $4.00 for all tickets sold after 2200 (10PM). However, no children may purchase tickets after that time. Add logic to the program of exercise 8 to implement the new policy.

User Khadreal
by
4.4k points