UCONN

UCONN
UCONN

Thursday, January 22, 2026

Assignment#1 due 1/27/26

Create a linux shell program to collect and save the following information.

Note validate major from this list 

Engineering - Engineering Physics
Engineering - Electrical Engineering
Engineering - Biomedical Engineering
Engineering - Mechanical Engineering
ACES - Exploratory
Engineering - Civil Engineering
Engineering - Computer Science & Engineering
Engineering - Computer Science

Name

Major - Validate Major
grade - e.g Freshman (same validation as program)
What you want to do?
High school you went to?
Town you live in?
Favorite subject growing up?
What are you passionate about?
Favorite band or musician?
Favorite song?
What company or organization would you like to for?
Send both code and output attachment via email
Attach the my_info.txt file to your email
List all lines of code
Program

#!/bin/bash

# My First scripts

echo "Enter your full name : "

read my_name

echo "Enter your major : "

read my_major

gradyear=2025

cyear=1



while true; do

    echo -n "Enter your class standing (Freshman, Sophomore, Junior, Senior): "

    read standing


    case "$standing" in

        [Ff]reshman)

            echo "✅ You entered: Freshman"

            cyear=4

            break

            ;;

        [Ss]ophomore)

            echo "✅ You entered: Sophomore"

            cyear=3

            break

            ;;

        [Jj]unior)

            echo "✅ You entered: Junior"

            cyear=2

            break

            ;;

        [Ss]enior)

            echo "✅ You entered: Senior"

            cyear=1

            break

            ;;

        *)

            echo "❌ Invalid entry. Please try again."

            ;;

    esac

done

# Perform addition

sum=$((gradyear + cyear))


# Display result

echo "Your Graduation year is $sum"


echo "My Name is : " $my_name > my_profile.txt

echo "My major is : " $my_major >> my_profile.txt

echo "My grade is : " $standing >> my_profile.txt

echo "I will graduate in the year : " $sum >> my_profile.txt

Monday, November 24, 2025

Assignment #12 due 12/12/25

 Build 4 graphs using machine learning - linear regression


I want two separate publicly traded companies e.g. AAPL & AMZN

Linear regression graph for 1 year and 2 year periods

Send the code in email and links to the graphs on your cloud storage bucket.

please send me the Authenticated URL
 in an email. Othe links do not allow me to access them.

https://uconnstamfordslp.blogspot.com/p/machine-learning-regression.html

Sunday, November 16, 2025

Assignment # 11 due 12/5/25

Take 3 news articles and run thru sentiment and entity recognition modules and send the output to me in an email.


Using the Codelab on Sentiment Analysis




Take each news article(3) in total and score it for sentiment and entity recognition.

Send me the output via email

Example

text = """Artificial intelligence may be one of the biggest technological leaps in history. It is poised to unlock new business models, transform industries, reshape people’s jobs, and boost economic productivity. Goldman Sachs is uniquely positioned to understand this fast-moving revolution. With our research across markets as well as our work with clients, we aim to provide meaningful analysis of this radical change and its implications for investors, companies, and the global economy."""


results


In [16]: show_text_sentiment(analyze_sentiment_response)

At sentence level:
   score | sentence
---------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    +0.5 | Artificial intelligence may be one of the biggest technological leaps in history.
    +0.2 | It is poised to unlock new business models, transform industries, reshape people’s jobs, and boost economic productivity.
    +0.3 | Goldman Sachs is uniquely positioned to understand this fast-moving revolution.
    +0.4 | With our research across markets as well as our work with clients, we aim to provide meaningful analysis of this radical change and its implications for investors, companies, and the global economy.

At document level:
   score |   magnitude | language
---------+-------------+------------
    +0.4 |        +1.6 | en

In [17]:

for name

In [20]: show_text_entities(analyze_entities_response)
 name                    | type          |   salience | mid       | wikipedia_url
-------------------------+---------------+------------+-----------+---------------------------------------------
 Artificial intelligence | OTHER         |        22% |           |
 one                     | PERSON        |        22% |           |
 leaps                   | OTHER         |        18% |           |
 history                 | OTHER         |         7% |           |
 business models         | CONSUMER_GOOD |         3% |           |
 analysis                | OTHER         |         3% |           |
 productivity            | OTHER         |         2% |           |
 industries              | OTHER         |         2% |           |
 jobs                    | OTHER         |         2% |           |
 people                  | PERSON        |         2% |           |
 revolution              | OTHER         |         2% |           |
 research                | OTHER         |         2% |           |
 markets                 | OTHER         |         2% |           |
 change                  | OTHER         |         2% |           |
 implications            | OTHER         |         2% |           |
 Goldman Sachs           | ORGANIZATION  |         1% | /m/01xdn1 | https://en.wikipedia.org/wiki/Goldman_Sachs
 investors               | PERSON        |         1% |           |
 companies               | ORGANIZATION  |         1% |           |
 economy                 | OTHER         |         1% |           |
 work                    | OTHER         |         1% |           |
 clients                 | PERSON        |         1% |           |
 one                     | NUMBER        |         0% |           |

Assignment#1 due 1/27/26

Create a linux shell program to collect and save the following information. Note validate major from this list  Engineering - Engineering Ph...