Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Estimate the amount of time a person has slept in their life ( roughly ) . Write a Java application that will input a person

Estimate the amount of time a person has slept in their life (roughly).
Write a Java application that will input a persons name, age, and
a typical number of hours he/she sleeps per night. Valid input
could be:
Joe Smith
28
7.5
From that data, calculate:
1. The number of hours the person has slept during his/her life
o age *365* hours slept each night
2. The number of days the person has slept during his/her life
o Answer from #1 divided by 24
3. The number of years the person has slept during his/her life
o Answer from #2 divided by 365
NOTE: You are estimating the values above. For example, your age is based upon your last
birthday. Do not worry about days since a persons last birthday

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago