Nexclap

State and Capital Cities Table

Table structure set up by HTML Table format by CSS Table of 8 states and their capitals Exercise Set 4 is having red color text, different from the default black color.

Inputs and Lists

html code answering Exercise Set 2 in HTML/CSS Level 1A Includes: Answer Boxes for user's favorite color, restaurant, and sport A submit button My favorite websites (websites I use often) in ordered lists.

Stock Correlation Coefficient

import math spy = [170.66, 170.95, 170.70, 169.73, 169.18, 169.80,169.31, 169.11, 169.61, 168.74, 166.38, 165.83] jpm = [56.54, 56.40, 56.10, 55.49, 55.30, 54.83, 54.52, 54.09, 54.29, 54.15, 53.29, 51.83] totalSpy = 0 totalSpySq = 0 totalJpm = 0 totalJpmSq = 0 totalSXJ = 0 spySquare = [] jpmSquare = [] sXJ = [] for x in range(0, len(spy), 1): spySquare.append(pow(spy[x], 2)) for x in range(0, len(jpm), 1): jpmSquare.append(pow(jpm[x], 2)) for x in range(0, 12, 1): sXJ.append(spy[x] * jpm[x]) for x in range(0, 12, 1): totalSXJ = totalSXJ + sXJ[x] avgSXJ = totalSXJ/12 for x in range(0, 12, 1): totalSpy = totalSpy + spy[x] avgSpy = totalSpy /12 for x in range(0, 12, 1): totalSpySq = totalSpySq + spySquare[x] avgSpySq = totalSpySq /12 for x in range(0, 12, 1): totalJpm = totalJpm + jpm[x] avgJpm = totalJpm /12 for x in range(0, 12, 1): totalJpmSq = totalJpmSq + jpmSquare[x] avgJpmSq = totalJpmSq /12 varianceSpy = avgSpySq - (avgSpy * avgSpy) varianceJpm = avgJpmSq - (avgJpm * avgJpm) covariance = avgSXJ - (avgSpy * avgJpm) correlationCoefficient = covariance/math.sqrt(varianceSpy*varianceJpm)
Announcements
  • Test Announcement from Nexclap

    Test message from nexclap - please ignore

    2023-02-13

  • Test message

    Test message from nexclap - please ignore

    2023-02-11

  • Test message

    Test message from nexclap - please ignore

    2023-02-11

  • View all