PLEASE WRITE A FULL FUNCTIONING CODE FOR THIS PLEASE! WRITE THE CODE DOWN IN RESPONSE IN HTML>
Fantastic news! We've Found the answer you've been seeking!
Question:
PLEASE WRITE A FULL FUNCTIONING CODE FOR THIS PLEASE! WRITE THE CODE DOWN IN RESPONSE IN HTML> PLEASE COMPLETE ASAP.
PLEASE DONT Cancel
Transcribed Image Text:
Day of Birth This challenge will give experience in extracting components from a string as well as extra validation experience. In place of "years of age" you should request the date of birth. • The date of birth must be in the form "dd/mmm/yyyy", (e.g. "05/Nov/1978"). • The date string must be fully validated:- 1. Split the string into its components:- ■ Convert the day to a number (e.g. nDay). ■ Convert the month string to a month index (e.g. iMth). ■ Convert the year to a number (e.g. year). 2. Use the components in a constructor for a date object. 3. Assuming that we created the Date object using:- then the following expression would check the date validity:- let is DobValid • Store the date object, not a string. • The table displayed should still only include the age in years. Not Seeking It is suggested that you write a function called getDate() that performs the input and validation of a date. Top Unemployed and Under-employed "notSeeking" Are you looking for FT, PT, or not seeking work. let dob = new Date(year, iMth, nDay); Full Time No Part Time "unemployed" Were you employed over the past week? Yes Yes Part Time Do you seek full time work? "underEmployed" Was your Employment FT or PT ( dob.getDate() == nDay && dob.getMonth() == iMth && dob.getFullYear() == year ; No Full Time "employed" Diagram 4: The Expanded Employment Status. The entry of the employment status given above is simplistic. This challenge introduces a more realistic determination of employment status. The entry of the employment status is to be expanded:- 1. There are two additional values for the employment status. Please implement and call a function to input the employment status as depicted in Diagram 4. 2. Your function should not use global variables. 3. Instead of just "employed" or "unemployed" your table will now show one of 4 possible employment status values as depicted. 4. Calculate and display both an unemployed rate and an under-employed rate. Top Day of Birth This challenge will give experience in extracting components from a string as well as extra validation experience. In place of "years of age" you should request the date of birth. • The date of birth must be in the form "dd/mmm/yyyy", (e.g. "05/Nov/1978"). • The date string must be fully validated:- 1. Split the string into its components:- ■ Convert the day to a number (e.g. nDay). ■ Convert the month string to a month index (e.g. iMth). ■ Convert the year to a number (e.g. year). 2. Use the components in a constructor for a date object. 3. Assuming that we created the Date object using:- then the following expression would check the date validity:- let is DobValid • Store the date object, not a string. • The table displayed should still only include the age in years. Not Seeking It is suggested that you write a function called getDate() that performs the input and validation of a date. Top Unemployed and Under-employed "notSeeking" Are you looking for FT, PT, or not seeking work. let dob = new Date(year, iMth, nDay); Full Time No Part Time "unemployed" Were you employed over the past week? Yes Yes Part Time Do you seek full time work? "underEmployed" Was your Employment FT or PT ( dob.getDate() == nDay && dob.getMonth() == iMth && dob.getFullYear() == year ; No Full Time "employed" Diagram 4: The Expanded Employment Status. The entry of the employment status given above is simplistic. This challenge introduces a more realistic determination of employment status. The entry of the employment status is to be expanded:- 1. There are two additional values for the employment status. Please implement and call a function to input the employment status as depicted in Diagram 4. 2. Your function should not use global variables. 3. Instead of just "employed" or "unemployed" your table will now show one of 4 possible employment status values as depicted. 4. Calculate and display both an unemployed rate and an under-employed rate. Top
Expert Answer:
Related Book For
Financial Management for Public Health and Not for Profit Organizations
ISBN: 978-0132805667
4th edition
Authors: Steven A. Finkler, Thad Calabrese
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Suppose a single 802.11n client is connected to an 802.11n access point and there is no other client or access point in the neighborhood. The client senses the medium, then sends a 2000-Byte frame,...
-
Determine the stopping distances for an automobile going a constant initial speed of and human reaction time of 0.40 s: (a) For an acceleration a = -3.0 m / s2, (b) For a = -6.0 m / s2.
-
What is a heat-affected zone? Why do some welding processes result in a joint where the material in the heat-affected zone is weaker than the base metal?
-
Petitioner Atlantic Marine Company was a contractor located in Virginia. It entered into a subcontract with J-Crew Management, Inc., a Texas corporation, that contained a forum-selection clause...
-
The comparative statements of Osborne Company are presented here. All sales were on account. Net cash provided by operating activities for 2014 was $220,000. Capital expenditures were $136,000, and...
-
Explain why if assets are valuable resources and asset accounts have debit balances why do expense accounts also have debit balances. What is meant by the normal balance?
-
The bookkeeper has prepared a preliminary trial balance of Suzzy and Daryl for the year ended 31 December as follows. GH Capital account Profit and loss account at 1 January Bank loan Debtors and...
-
Consider two isolated, charged conducting spheres: a large sphere and a second smaller sphere with a radius 10 times smaller than that of the large sphere, but with 6 times as much charge. (a)...
-
write the code for Wordcount.java to display the output for Average rating and the number of user who rated the movie, the u.data set The following file is from Movielens dataset which shows user...
-
Give an example of a failing internal control and the corrective action.
-
discuss in details the impact of teleworking on organizational commitment and employee work-life balance?
-
Steve is planning for his retirement. He is currently 37 and plans to retire in 26 years, at age 63. He expects then to live an additional 34 years, until age 97. He expects inflation to average 5%...
-
If you buy a 3 year 4% Certificate of Deposit (CD) for 25,000, what is the total interest paid on the CD at maturity?
-
What is the total number of missing checks in the sequence listed in the Cash Disbursements database? (Please select the choice that represents all possible correct answers.) b. How many duplicate...
-
What are the typical record-at-a-time operations for accessing a file? Which of these depend on the current file record?
-
Millbridge Memorial Hospital provides comprehensive physical exams. The charge per exam is $ 100, while the variable cost per exam is $ 65. Thirty percent of the patients who come in for exams are...
-
The City Transit Authority (CTA) is trying to decide between railcars manufactured by French Corp and Japan Rail Car. The French Corp cars cost more to buy initially, but they are expected to last...
-
Dr. Eger is a physician who operates on two different types of patients. He has been pressing the Hospital for Ordinary Surgery (HOS) for more operating-room time. HOS is busy and would have to turn...
-
Let \(\left\{\mathbf{X}_{n}ight\}_{n=1}^{\infty}\) be a sequence of \(d\)-dimensional random vectors that converge in distribution to a random vector \(\mathbf{X}\) as \(n ightarrow \infty\). Let...
-
Let \(\mathbf{X}\) be a \(d\)-dimensional random vector with distribution function \(F\). Let \(g: \mathbb{R}^{d} ightarrow \mathbb{R}\) be a continuous function such that \(|g(\mathbf{x})| \leq b\)...
-
In the context of the proof of Theorem 4.3, prove that \[\lim _{n ightarrow \infty}\left|\int_{a}^{b} g_{m}(x) d F(x)-\int_{a}^{b} g(x) d F(x)ight| for any \(\delta_{\varepsilon}>0\). Theorem 4.3...
Study smarter with the SolutionInn App