How accurate is location data/history? What databases store the location history? How are locations obtained? What applications use locations? Are there different levels of accuracy?

Cyber Security Question

In the following format: MS Word, 2.5 full typed pages (not including sources), 12pt Arial font, single spaced, NO screenshots or pictures, all original content, and any referenced material must be properly documented. For full credit, please answer all the questions with as much detail as possible.

In 2 pages please research the below material:

Research location history on cell phones. The research will be for both the Android OS and the iOS. How accurate is location data/history? What databases store the location history? How are locations obtained? What applications use locations? Are there different levels of accuracy?

Implement a Bank with Accounts, while practicing and demonstrating both basic OOP design and TDD, while using the plugins we set up in week 1 lab.

Banking System

This assignment asks you to implement a Bank with Accounts, while practicing and demonstrating both basic OOP design and TDD, while using the plugins we set up in week 1 lab. We are expecting you to follow the naming conventions taught in class.

Your assignment is to (using TDD of course) develop a Bank that allows for account management.
Specifically, you can create accounts, deposit money into accounts, and withdraw money from accounts.

There are three different account types:

Checking

Savings

Certificate of Deposit (CD)

All 3 account types are created with:

A unique 8digit ID.
Examples: 12345678, 00000001, 89456185

An APR value from 0 to 10. APRs can have decimal values.

Examples: 0, 0.3, 3, 5.7, 7.9, 9.8, 10.

Checking and Savings accounts are created with a balance of 0 every time. CD accounts are created with a specified balance. That is, if we say to create one with a balance of $1000, its balance will be $1000 when it’s created. CD accounts can’t be created without a specified balance. Similarly, Checking and Savings accounts can’t be created with a specified balance they will always start at $0.

Balances should support decimal values. Creating a CD account with $2005.54 is valid.

Depositing money into an account adds money to the balance in that account. Don’t deposit negative values. Depositing decimal values is supported.

Withdrawing money from an account removes money from the balance in that account. Don’t withdraw negative values. Withdrawing decimal values is supported. Special rule: if you try to withdraw more money than is in the account, the account’s balance goes to 0. For example, if an account has $100 and you withdraw $200 from it, the balance should be $0.

How accurate is location data/history? What databases store the location history? How are locations obtained? What applications use locations? Are there different levels of accuracy?

Cyber Security Question

In the following format: MS Word, 2.5 full typed pages (not including sources), 12pt Arial font, single spaced, NO screenshots or pictures, all original content, and any referenced material must be properly documented. For full credit, please answer all the questions with as much detail as possible.

In 2 pages please research the below material:

Research location history on cell phones. The research will be for both the Android OS and the iOS. How accurate is location data/history? What databases store the location history? How are locations obtained? What applications use locations? Are there different levels of accuracy?

Please include other information you found in your research; the above questions are just a guideline to get you started.

Analyze the dataset and segment these customers into distinct groups.

Case ROI Calculation

Project Background

Amazon Prime
In 2005, Amazon announced the creation of Amazon Prime, a membership
offering free twoday shipping within the contiguous United States on all eligible purchases for a flat annual fee of $79 (equivalent to $96 in 2015), as well as discounted oneday shipping rates. Amazon launched the program in Germany, Japan, and the United Kingdom in 2007; in France (as “Amazon Premium”) in 2008, in Italy in 2011, and in Canada in 2013.
Amazon Prime membership in Germany, the United Kingdom, and the United
States also provides Amazon Video, the instant streaming of selected movies and TV shows at no additional cost. In November 2011, it was announced that Prime members have access to the Kindle Owners’ Lending Library, which allows users to borrow certain popular Kindle ebooks for free reading on Kindle hardware, up to one book a month, with no due date.
In March 2014, Amazon announced an increase in the annual membersh
ip fee for Amazon Prime, from $79 to $99. Shortly after this change, Amazon announced Prime Music, a service whose members can get unlimited, adfree streaming of over a million songs and access to curated playlists. In November 2014, Amazon added Prime Photos, which allows unlimited photo storage in the users’ Amazon cloud drive. In March 2015, Amazon was expanding that service as a paid offering to cover other kinds of content, and to users outside of its loyalty program. Unlimited Cloud Storage will let users get either unlimited photo storage or “unlimited everything” covering all kinds of media from videos and music through to PDF documents respectively for $11.99 or $59.99 per year. Amazon also began offering free sameday delivery to Prime members in 14 U.S. metropolitan areas in May 2015. In April 2015, Amazon started a trial partnership with Audi and DHL in order to get deliveries directly into the trunks of Audi cars. This project is only available on the Munich (Germany) area to some Audi connected car users.
On July 15, 2015, to commemorate its 20th birthday, Amazon celebrated
“Amazon Prime Day”, which Amazon announced would feature deals for prime members that rivaled those on Black Friday. Also that month Amazon Prime announced that it would be signing Jeremy Clarkson, Richard Hammond, and James May, formerly of BBC’s Top Gear, to begin working on The Grand Tour, due to be released in 2016.
In December 2015, Amazon stated that “tens of millions” of people are Amazon
Prime members. Amazon Prime added 3 million members during the third week of December 2015. It was also during December that Amazon announced the creation of the Streaming Partners Program, an overthetop subscription service that enables Amazon Prime subscribers to add additional streaming video services to their accounts. Among the programming providers involved in the program are Showtime, Starz (with additional content from sister network Encore), Lifetime Movie Club (containing recent original movie titles from Lifetime Television and Lifetime Movie Network), Smithsonian Earth, and Qello Concerts.
In January 2016, Amazon Prime reached 54 million members according to a report
from Consumer Intelligence Research Partners. In April 2016, Amazon announced sameday delivery would be expanded to include the areas of Charlotte, Cincinnati, Fresno, Louisville, Milwaukee, Nashville, Central New Jersey, Raleigh, Richmond, Sacramento, Stockton, and Tucson, bringing total coverage to 27 metro areas..

Source: Wikipedia

Team assignment
You’v
e been given a team project targeting current AP customers for a preholiday promotion encouraging shoppers to visit AmazonPrime for their holiday gift buying needs.
Your marketing manager requested
your team analyze purchase data from the previous holiday season with data provided by American Express Cardholder Services. The data contains demographic , product, and spend amount data for your team to analyze and determine how best to solicit shoppers. Your team’s analysis will then be used to select 100,000 names from the AmazonPrime database as the marketing budget is not large enough to solicit everyone.

The data file provided contains:


1.
Highlevel demographic data (name, location, age, income, etc) for nearly 400 randomly selected customers.
2.
Each record contains the product purchased and the amount spent to purchase that product

Requirements
As a team,
analyze the dataset and segment these customers into distinct groups. Your segmentation scheme may combine any of the variables provided in the excel document.
Once complete, you
r team is required to present findings to the Chief Marketing Officer (me) for go/nogo approval. Your presentation must consist of the following:
1.
A title page with team members listed
2.
13 slides profiling holiday shopping customer. Your research can come from any credible source such as Forrester, Adage, Adweek, eMarketer, NY Times, etc.
3.
13 slides on how you conducted your analysis; any techniques used such as crosstabulations, logic counter variables, etc., to summarize the data
4.
13 slides on your segmentation scheme including high, medium, and low value cardholders
5.
13 slides on your marketing plan on how you will solicit the target audience via direct mail and email channels
6.
13 slides on the calltoaction(s); what actions are you asking the target audience to do; how will you get them to consider purchasing products at AmazonPrime.

7. 13 slides on how you will monitor and measure the performance of the marketing plan.
8. 1-3 slides on how you would calculate ROI for this promotion, based on assumptions in the below chart. Please also project your findings on a house file of 100,000 names. You may use the average spend by member for each of your segments to determine ROI.

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.

2 part python problems

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.

Your assignment submission needs to include the following resources:

A .pdf file must be the first resource and it will include all the answers to the questions above, including all the python code you produce. Make sure that you submit a neat, clearly presented, and easy-to-read .pdf. The .pdf should be submitted under the name file “student_name.pdf”.

Your second resource must be a single zip file which should include the Jupyter Notebook with extension .ipynb and named “student_name.ipynb”, along with any additional files (e.g. pictures of your flowchart). ***You need to submit two files: (1) pdf file from the first step (primary resource) and (2) a zip file including the ipynb file from the second step (secondary resource).

Discuss how Mentally ill people are treated In prisons.

Discussion 4

Discuss how Mentally ill people are treated In prisons.

Which state had the highest sales? What was the total dollar amount? Which state had the lowest sales? What was the total dollar amount? What is the average amount of insurance sold per state? Which state had the highest average policy amount? Which state had the lowest average policy amount?

Assignment #5 – Analysis with Tableau

Background:
The demand for college graduates with data analytics skills has exploded, while the tools and techniques are continuing to evolve and change at a rapid pace. This case illustrates how data analytics can be performed. As you analyze this case, you will be learning how to drill-down into a company’s sales data to gain a deeper understanding of the company’s sales and how this information can be used for decision-making.

 

This KAT Insurance Corporation data set is based on real-life data from a national insurance company. The data set contains more than 65,000 insurance sales records from 2017. All data and names have been anonymized to preserve privacy.

 

Instructions:

For each of the below requirements, complete the below steps and answer the corresponding questions.

 

# Requirement Response
1. Before loading your data to Tableau, review the Excel file (KAT-Data.xlsx). There are some typographical errors in the data set in the Region and Insurance Type fields. Find and correct these errors.

 

Briefly describe these errors to the right.

 

(3 points)

 
2. Load the data into Tableau.

 

Rank the states from the highest total insurance sales to lowest total insurance sales. Sort the data by sales, from highest to lowest.

 

a.    Which state had the highest sales? What was the total dollar amount?

b.    Which state had the lowest sales?  What was the total dollar amount?

c.    What is the average amount of insurance sold per state?  Which state had the highest average policy amount?  Which state had the lowest average policy amount?

d.    How many insurance policies were sold in each state?

e.    Do any states not meet the $850,000 minimum sales level?

 

(1 point for each a through e; 5 points total)

 
3. Rank the regions from the highest total insurance sales to lowest total insurance sales. Sort the data by sales, from highest to lowest.

a.    Which region had the highest sales? What is the total dollar amount?

b.    Which region had the lowest sales?  What is the total dollar amount?

 

(2 point for each a and b; 4 points total)

 
4. Who is the leading salesperson in each region?

 

(2 points)

 
5. What is the total dollar amount sold for each type of insurance?

 

(2 point)

 
6. Create a graph to show total dollar amount of each type of insurance sold, by region. What does this graph show?

 

(4 points)

 

 

 

 

 

7. Create a map chart that shows total sales for each state. What can you surmise from this map chart?

 

(4 points)

 

 

 

 

 

8. Analyze all the information you have gathered or created in the preceding requirements. What trends or takeaways do you see? Explain.

 

(6 points)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write a simple python script using these 2 commands for a video file.

Video file script

Write a simple python script using these 2 commands for a video file.

  1. $ ffmpeg -i video.mp4 video.avi
  2. $ ffmpeg -i input.mp4 -filter:v scale=1280:720 -c:a copy output.mp4

How do you structure an essay effectively?

Writing Question

Answer concisely –

  1. How do you structure an essay effectively?

Write a text-based, Java program. Everything will be done in Java: creating and dropping tables, inserting, deleting and updating tables.

Java program

Write a text-based, Java program. Everything will be done in Java: creating and dropping tables, inserting, deleting and updating tables. You will be working with your group to come up with your own database that contains 2 tables, a parent table and a child table, such as Party and Candidate (Should be a one to many relationship). Prefix your table names with a funky group name to avoid collisions. DO NOT USE Party and Candidate or Person and Personality as your tables. Come up with your own. At the end of your program, be sure to drop your tables, which means that every time you run your program, you will be creating the tables. Modularize your code. Your methods should not contain more than 20 lines.