Posts

Use an algorithm and a flow chart to develop and express your algorithm that accomplishes the given task. Remember, you have to be very explicit and clear to make sure one can actually accomplish the task following your directions. Describe the input(s), output(s) and the process of the algorithm.

Jupyter notebook

Overview

This assignment will allow you to practice algorithmic thinking and basic Python programming with several small-scale problems. As you solve each problem, follow the steps of algorithmic thinking as outlined below. NOTE: you only need to provide an algorithm, flowchart and test cases for part 2 (no algorithm/flowchart/test cases are needed for part 1).

  • Step 1: Algorithm Description. Use an algorithm and a flow chart to develop and express your algorithm that accomplishes the given task. Remember, you have to be very explicit and clear to make sure one can actually accomplish the task following your directions. Describe the input(s), output(s) and the process of the algorithm.
  • Step 2: Program Code – Implementation: Implement the algorithm in Python using the basic structures we covered in class (ONLY USE CONCEPTS COVERED IN CLASS):
  • User input
  • Variables
  • Operators
  • Conditional execution
  • For/while loops
  • Data structures
  • Functions and modules
  • Pandas
  • **Step 3: Program Testing: **Create a Test Plan with two or three test cases that demonstrate your code works as intended. Explain how you used these test cases in your comments.
  • Step 4: Program Documentation: Be sure to comment thoroughly so that it is clear that you understand what every line of the code is intended to accomplish.

Part 1: Data Analysis and Visualization

You will work with a dataset that contains information on a coffee shop’s sales. The dataset is below. DOWNLOAD THE DATASET AS A CSV FILE ON YOUR COMPUTER FROM THE LINK BELOW AND READ IT IN PANDAS FROM THERE. DO NOT READ IT FROM THE LINK BELOW.

Dataset: https://drive.google.com/file/d/141afTVoF0J2FjpLI-VfERyJM7aWUQ8az/view?usp=sharing

Variables:

transaction_id – transaction id

transaction_date – transaction date

transaction_time – transaction time

sales_outlet_id – sales outlet (A, B, C, D, E, F or G)

staff_id – id of the staff member

customer_id – ID of the customer

instore_yn – whether the sale was in the store (yes or no)

product_id – id of the product

quantity – quantity purchased

unit_price – price per unit (item) in USD

promo_item_yn – whether the item was on promotion (yes or no)

Question 1.

Import the csv file in pandas and save it as a dataframe. Then, write a code that returns: (1) the first 10 and last 10 rows; and (2) the number of rows and columns in the data set. Discuss what the code shows you about the data set.

Question 2.

Write a code that returns: (1) the distribution of sales outlets (including a count of each outlet type and a bar chart); (2) the minimum and maximum transaction_id; (3) the minimum, maximum and average customer_id; and (4) the distribution of products in bought in store (yes or no) using a pie chart.

Question 3.

You discover that the variable unit_price was incorrectly recorded. Create a new variable unit_price_corrected where you add 1.50 to unit_price for the first 100 items, and you subtract 1.50 from the unit price for the remaining items in the data set. Then, calculate and compare the average of unit_price and unit_price_corrected.

Question 4.

The coffee shop’s management wants to find out which of the outlets has the highest revenue. Calculate the total revenue for each of the outlets. Remember that total revenue will be unit_price_corrected multiplied by quantity. Also, present your calculations using a line graph. Explain what you found and what the chart shows.

Question 5.

The coffee shop’s management wants to find out how the staff are doing in terms of sales. For each of the staff ids, calculate the total product units sold and the total revenue sold. Provide two bar charts (one for total product units, one for total revenue) by staff id, and interpret your findings.

Question 6.

Develop one question yourself that can be answered with the information included in this dataset. Write the code to answer the question, and include a visualization.

Question 7.

Develop one question yourself that can be answered with the information included in this dataset. Write the code to answer the question, and include a visualization.

Part 2

You are hired to develop an online management system for a cafe. This program will be used by the café admins and will help them manage online orders. Use a function to develop a program with the following features:

  1. Allow the café admin to enter the menu items until the user enters quit to stop. The list should include a minimum of 10 items. For example: main_categories = [Americano, Espresso, Cheese sandwich]
  2. Use the main menu list you created in step 1 to create a dictionary that should contain the price of each of the menu items with their respective cost. For example: items_price= {“Americano”: 13, “Espresso”: 9, “Cheese sandwich”:15}
  3. Use the main menu list you created in step 1 to create another dictionary that should contain the quantity of each menu item. items_quantity={“Americano”: 50, “Esspresso”: 30, “Cheese sandwich”:10}
  4. Use the main menu list you created in step 1 to create another dictionary that allows the cafe admin to record the rating received from customers on menu items. The ratings are scored on a scale from 1 to 5, with 5 indicating the maximum customer satisfaction. For example: items_rating = {“Americano”: 4, “Esspresso”: 1, “Cheese sandwich”:5}

Your function should return the following data structures separately:

  1. The dictionary that includes all entries.
  2. A list named satisfied_item, which includes the items with satisfaction of 3 or higher.
  3. A list named highprice_item, which includes the items with price above 10 .
  4. A list named few_items, which includes the items with quantity less than 5.

For part 2 only: First, create a step-by-step algorithm and a flowchart and then translate it into a fully functional and documented Python code. Follow the flowchart shape conventions from the session 3 reading, available here.

What types of issues or problems did the family encounter? What message or messages do you think this show trying to convey to Americans about family life? How does the 1950s American family compare to the American family of today?

1950s television family situation comedies

  1. Choose one of the following popular 1950s television family situation comedies (sitcoms) and watch at least 2 episodes:
  • “Father Knows Best” (1954-1960)
  • “Leave it to Beaver” (1957-1963)
  • “The Danny Thomas Show – Make Room for Daddy” (1953-1964)
  • “The Adventures of Ozzie and Harriet” (1952-1966)
  • “The Donna Reed Show” (1958-1966)
  1. Conduct outside research on the American family of the 1950s.

 

  1. Discuss the show’s impact on American society by considering the following questions:
  • What did the show’s family look like?
    • As far as its race, socioeconomic status (wealthy, middle class, poor), level education, number of members, dual or single parent household, etc. is concerned.
  • How were the men, women and children portrayed in the episodes?
    • What were their roles, behavior, relationships, etc.?
  • What types of issues or problems did the family encounter?
  • What message or messages do you think this show trying to convey to Americans about family life?
  • Lastly, how does the 1950s American family compare to the American family of today?

CREATE MIPS ASSEMBLY LANGUAGE PROGRAM BOUNCING BALL GAME USING MARS PROGRAM AND THE GAME SHOULD PLAY ON BITMAPS DISPLAY.

Bouncing ball project

CREATE MIPS ASSEMBLY LANGUAGE PROGRAM BOUNCING BALL GAME USING MARS PROGRAM AND THE GAME SHOULD PLAY ON BITMAPS DISPLAY. IF THE CODE WONT WORK I WILL ASK FOR REFUND.

The game should be the same as the video

What are the top three things you plan to do to prepare for the change? Explain.

Prepare for a change

What are the top three things you plan to do to prepare for the change? Explain.

What is the event or situation? Briefly, describe the social event or situation presented in the article. Who was involved? When/Where did the event occur? What data or statistics help to describe the situation?

Final: Current Event Video Presentation Guidelines

A Sociological Perspective of Current Events

The implications of sociological analysis are endless when one opens the morning newspaper or views news channels, news websites and other media platforms. This assignment is meant to get you thinking about how sociological analysis can add insight to everyday situations and our comprehension of current events. It will allow you to better appreciate the day-to-day applications and potential of sociology and recognize how useful sociological concepts and theories are to understand the world around us.

 

Video Final Presentation Guidelines

Select an article that describes an event or situation that has occurred in recent years (2019 – 2023). The article must be from a major source, such as The Washington Post, The New York Times, Baltimore Sun, Time Magazine, U.S. News & World Report, CNN, MSNBC, FOX, The Nation, The New Yorker, The Wall Street Journal, USA Today, and The Atlantic among others. The article can be found online or in print. Select a news article or news segment not an opinion piece.

  • After finding your news article or news segment, prepare a 10-15 slide PowerPoint presentation (no more than 15 slides) in which you analyze the article using one of the following theoretical perspectives: symbolic interactionism, conflict theories, or structural functionalism. You should use the information from the chapter that corresponds to your topic and the theoretical perspective presented in Chapter 1 to demonstrate that you understand the theoretical perspective and can apply it to help better understand the concept/information in the article.
  • In addition to a theoretical perspective, you will choose, describe, and apply at least two concepts from the course that correspond to your topic.

The following are examples of concepts from the chapters that you can consider but you are not limited to just these concepts.

Examples

  • Sociological imagination
  • Culture: values, beliefs, norms, symbols, language
  • Social interaction
  • Socialization
  • Deviance
  • Racism
  • Ideal and Real Culture
  • Culture Shock
  • Subculture
  • Ethnocentrism
  • Media
  • Sex
  • Gender
  • Discrimination
  • Sexual Orientation
  • Deviance
  • Crime
  • Stratification/Class

*Be creative in selecting concepts

The 5–7-minute presentation should meet the following criteria (Example attached)

Background:

  1. What is the event or situation?
  2. Briefly, describe the social event or situation presented in the article.
  3. Who was involved?
  4. When/Where did the event occur?
  5. What data or statistics help to describe the situation? (If applicable to your current event)
  6. Discuss the theory and concepts you will apply to your article.

Sociological Analysis:

  1. Analyze the article using one of the following theoretical perspectives: symbolic interactionism, conflict theories, or structural functionalism.
  2. Choose, describe, and apply at least two concepts from the course that correspond to your topic.
  3. Conclusion: demonstrate/explain the connections between all the main ideas (event, concepts, theoretical perspective).
  4. Include an engaging and stimulating conclusion slide that summarizes your presentation.
  5. Reference Slide

How do you ensure equity and fairness for all your students when planning for assessments? Explain how you would differentiate for students during formative assessments.

Education & Teaching Question

In Topic 4, you created a wax museum project for your students. In order to modify, strengthen, and adjust instruction as students are creating the wax museum project, research and decide how you will formatively assess students. Additionally, create a summative assessment for the students.

Part 1: Assessment Plan

For this assignment, you will create an assessment plan describing how you will conduct formative assessments while students are creating the project, along with a summative assessment.

Your assessment plan should include:

  • The social studies content standards, the arts standards, and the lesson objectives from the original lesson that the assessment plan will align to and measure.
  • Four specific examples of formative assessments you will implement.
  • Description of a summative assessment.
  • Rubric for the summative assessment.
  • Your plan to provide effective, descriptive feedback in a timely manner to students following the assessments.
  • Specific ways you will accommodate for students with disabilities and language barriers.

Part 2: Reflection

Write a 250-500 word reflection describing your assessment plan. In the summary address:

  • How the ethical use of various assessments and data guides you to identify students’ strengths and needs to promote growth.
  • How your assessments will support continuous progress in teaching and learning and demonstrate gains in skills and knowledge.
  • How your assessments, both formative and summative, can be differentiated to meet the needs of various students.

Extra questions(250 words each) –

1. When planning assessments for your students, why is it important to include both formative and summative assessments? What other factors do you consider when planning for instruction other than assessments?

2. How do you ensure equity and fairness for all your students when planning for assessments? Explain how you would differentiate for students during formative assessments.

Write a 5 Page Minimum (single-spaced with 12-point font) research paper covering the topic, citing any sources you use, including the CCPA or GDPR.

Computer Science Question

Write a 5 Page Minimum (single-spaced with 12-point font) research paper covering the topic, citing any sources you use, including the CCPA or GDPR. Your paper should have a Minimum of 5 Sources that are properly cited in the text and included in a Reference section.

Use a common citation method such as APA or IEEE and be consistent throughout (SOURCES WILL BE CHECKED!).

Define and/describe the Conflict theory on family and apply it to your family. Compare and contrast the theories and discuss which theory, functionalism or conflict theory, is better for explaining the purpose and role of family in society and why.

Introductory Sociology approach this activity.

Instructions
Review the functionalist perspectives on family from Theoretical Perspectives of Family.

Define/describe the four key functions of family.

Apply and discuss the four key functions to your family of orientation (the family you grew up in) or family of procreation (your spouse and/or children).

Give examples from your family to illustrate the functions.

Define and/describe the Conflict theory on family and apply it to your family.

Finally, compare and contrast the theories and discuss which theory, functionalism or conflict theory, is better for explaining the purpose and role of family in society and why.

Explain the idea of orchestration within security. Explain whether or not if this is a good idea or bad idea for security.

Cyber Security Question

Option 1: Explain the idea of orchestration within security. Explain whether or not if this is a good idea or bad idea for security.

Option 2: Explain what behavioral analysis is from a user and network perspective. Provide pros and cons for both of these technologies.

Describe basic switch configuration necessary for switch maintenance and operation. Describe basic router configuration necessary for router maintenance and operation.

CMIT 351 Project 2 Description

 

Intro:

ACME University IT has reviewed the results from your prototype and now wants to move forward with an adjusted set of requirements. You will need to implement layer 2 segmentation to control broadcast domains and increase Local Area Network (LAN) performance but also provide routing between segments.

 

Scenario:

IT has tasked you with implementing the revised, routed LAN. This effort builds on the prototype you recently completed. As always, you need to document all your work. The requirements you have specify a maximum number of switches (1), the number of virtual LANs (VLANs) as four, one router, and some computers in each VLAN for endpoint testing.

 

Overview

Modern switches use VLANs to improve network performance by separating large Layer 2 broadcast domains into smaller ones. In general, VLANs make it easier to design a network to support the goals of an organization. However, VLANs are not able to intercommunicate without the addition of layer 3 routing. A router or similar capability is required to facilitate inter-VLAN communication. Additionally, trunking will be required between network layers.

 

Objectives

  • Design a routed Local Area Network using switches, routers, and hosts (computers).
  • Describe basic switch configuration necessary for switch maintenance and operation.
  • Describe basic router configuration necessary for router maintenance and operation.
  • Describe Virtual LANs (VLANs) configurations to enforce segmentation.
  • Describe router interface configuration necessary facilitate inter-VLAN routing.
  • Describe necessary VLAN trunking between the switch and router.

Tools

  • You will need a diagramming application such as io or Visio to complete Part 1.
  • You can reference the following uCertify labs for help in building the switch configuration narratives: Modules 5, 6, 7, 8, 9, 10, 15, and 17
  • Note: access to physical or emulated Cisco devices is not required to complete this project. However, if you want to test, practice, or otherwise tinker you can get Cisco Packet Tracer (https://skillsforall.com/course/getting-started-cisco-packet-tracer) or GNS3 (https://gns3.com/)