CIS363A Lab 6 JavaScript For New Year’s Eve

Elegance Entertainment has a website that promotes their annual New Year’s Eve party. This site is required to display the current date and the number of days until New Year’s Eve. The nyeProblem.htm file is missing Javascript. Download the iLab 6 folder with this file in it. You must add this code such that the following will be displayed on Elegance’s Web page:

iLAB STEPS
STEP 1: Add library.js
Add the script code that will import the javascript file library.js.

STEP 2: Variables And Values
Declare the following variables and assign the following values:
Today = today’s date
ThisDay = the current day
ThisMonth = the current month
ThisYear = the current year
DaysLeft = Return value for NYEDays function in libary.js. Sends Today as argument.
MonthTxt array with first location = “” and remaining locations storing months “January”, “February”, and so forth.

STEP 3: Decision And Output
Display today’s date. Add a decision statement that displays the number of days left to New Year’s Eve or a message that says, “IT’S NEW YEARS EVE!”

STEP 4: iLab Submission

  • Once you have made the changes above, change the name of the folder to CIS363A_YourLastName_W6_Lab.
  • Right-click on the folder and select Send To -> Compressed (zipped) Folder. You can also use other tools to compress the files into a single zip folder (e.g., 7-zip).
  • Upload the zip file to the Week 6 iLab DropBox, located at the top of this page.

Submit your lab to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions or watch this TutorialDropbox Tutorial.
See the Syllabus section “Due Dates for Assignments & Exams” for due date information.

Deliverables

Step Deliverable/Components Points
Step 1 – Add Javascript source library.js 5
Step 2 – Add Javascript variables and array and assign values 15
Step 3 – Add the correct decision and output statements 20
Total 40



This slideshow requires JavaScript.


This assignment includes a zip document.

  • Attachments
    • CIS363A_Lab_6.zip (815.51 KB)
      • CIS363A_YourLastName_W6_Lab
      • Screenshots
        • Screenshot_CurrentDay.jpg
        • Screenshot_NewYear.jpg
    Preview random excerpt
    xxxxxxxx xxxxxxx(xxxxxxxx) {
    xxx xxxxx=xxxxxxxx.xxxxxxxxxxx();
    xxx xxxx=xxx xxxx("xxxxxxxx, 31, 2014");
    XDay.
    xxxxxxxxxxx
    (XYear);
    xxx
    DayCount=(
    xxxx
    -
    xxxxxxxx
    )/(1000*60*
    xx
    *
    xx
    );
    xxxxxxxx
    =
    xxxx
    .
    xxxxx
    (DayCount); return DayCount; }
    Preview random excerpt
    xxxx {xxxxxx: 0xx}
    x x {xxxxx:xxxxx}
    x3 {xxxx-xxxxxx: xxxx-xxxxx; xxxxx:xxx; xxxxxx-xxxxxx:-20xx}
    #xxx {xxxxxxxxxx-xxxxx:xxxxx; xxxxx:100%}
    #xxxxxxx {xxxx-xxxxxx: xxxx-xxxxx; xxxxx:xxx;
    xxxx
    -
    xxxx
    :8pt;
    xxxx
    -align:
    xxxxxx
    ;
    xxxxxx
    -top: 2px
    xxxxx
    rgb(128,0,0)} #
    xxxxxxx
    {text-align:center;
    xxxxxxxxxx
    -color:gold;
    xxxxx
    :
    xxx
    ;
    xxxx
    -size:10pt;
    xxxx
    -family:
    xxxx
    -
    xxxxx
    ;
    xxxxxx
    -bottom:
    xxx
    solid rgb(128,0,
    x
    )} #
    xxxxx
    {
    xxxxxxxxxx
    -color:
    xxx
    (128,0,0); width: 100px} #links a {color: gold;
    xxxx
    -decoration:none; font-size:8pt;
    xxxx
    -family: sans-serif;
    xxxxxxx
    :
    xxxxx
    ; padding: 1px; border:
    xxx
    xxxxx
    xxx
    (128,0,
    x
    ); margin:
    xxx
    ; width:
    xxx
    %} #
    xxxxx
    x
    .
    xxxxxxxx
    {margin-top: 10px} #
    xxxxx
    a:
    xxxxx
    {border:
    xxx
    outset
    xxxxx
    ; color:
    xxxxx
    } #
    xxxx
    {text-
    xxxxx
    : center; border-
    xxxxxx
    : 1px solid rgb(128,
    x
    ,0)}
    #xxxxxxxx {xxxxx: 50%; xxxxxx-xxxxx: 1xx xxxxx xxx(128,0,0)}
    #xxxxxxxxx {xxxxx: 50%}
    .xxxxxx:xxxxx-xxxx {xxxx-xxxxxxx: xxxxx-xxxx}
    - - - more text follows - - -



Purchasing Instruction
List Price: $15
Buy Now

Add to Cart

FLASH SALE
$59

$78 Save $19
CIS363A Entire Course