Python Functions

1) Write a function that calculates the volume of a sphere with radius r for only values > 0, return 0 otherwise . V=4/3  π r^3

2)  Write a function that finds you weight in stones using the formula.  mstone = mkgx2.2/14

3) Write a function that takes some monetary amount from the user in dollars, and then display exact changes for this amount using the minimum number of coins. For example, $0.97 shows 3 quarters, 2 dimes, and 2 pennies. 

 

Output: 
change_it(97)

The change for 97 cents is:
3 quarters
2 dimes
2 pennies

 Write an function to calculate both Ohm’s Law and Power transferred. The function takes i and r as inputs and prints the results (see output below). Calculate only if both i and r are > 0. 

 

FORMULA
 i is current, v is voltage, r is resistance, p is power
 p = i * v   # power = current * volatage
 v = i * r   # voltage = current * resistance
def ohms_law(i, r): 
   '''
     i is current
     r is resistance
   '''
   # check if both i and r are greater than 0
   # calculate v and p
   # PRINT v and p
omhs_law(5, 5)
v = 25 p = 125

omhs_law(-5, -5)
0

Aligning Risks, Threats, and Vulnerabilities to COBIT P09 Risk Management Controls

  Introduction

Ask any IT manager about the challenges in conveying IT risks in terms of business risks, or about translating business goals into IT goals. It’s a common difficulty, as the worlds of business and IT do not inherently align. This lack of alignment was unresolved until ISACA developed a framework called COBIT, first released in 1996. ISACA is an IT professionals’ association centered on auditing and IT governance. This lab will focus on the COBIT framework. The lab covers two released versions: COBIT 4.1, which is currently the most implemented version, and COBIT 5, which was released in June 2012. A newer version, COBIT 2019, was released in 2019.

Because COBIT 4.1 is freely available, with registration, at the time of this writing, the lab uses this version to present the handling of risk management. COBIT presents this topic using a set of COBIT control objectives called P09. COBIT P09’s purpose is to guide the scope of risk management for an IT infrastructure. The COBIT P09 risk management controls help organize the identified risks, threats, and vulnerabilities, enabling you to manage and remediate them. This lab will also present how COBIT shifts from the term “control objectives” to a set of principles and enablers in later versions.

In this lab, you will define COBIT P09, you will describe COBIT P09’s six control objectives, you will explain how the threats and vulnerabilities align to the definition for the assessment and management of risks, and you will use COBIT P09 to determine the scope of risk management for an IT infrastructure.

  1. Define what COBIT (Control Objectives for Information and related Technology) P09 risk management is for an IT infrastructure.
  2. Describe COBIT P09’s six control objectives that are used as benchmarks for IT risk assessment and risk management.
  3. Explain how threats and vulnerabilities align to the COBIT P09 risk management definition for the assessment and management of IT risks.
  4. Use the COBIT P09 controls as a guide to define the scope of risk management for an IT infrastructure.
  5. Apply the COBIT P09 controls to help organize the identified IT risks, threats, and vulnerabilities.

 Deliverables

Upon completion of this lab, you are required to provide the following deliverables to your instructor:

  1. Lab Report file;
  2. Lab Assessment (worksheet or quiz – see instructor for guidance).

R exercise

This is the R exercise from the first lecture.

As discussed in class please submit the following:

The R code & line plot of the boys, girls and total all on the same plot and in separate color.  Do not foreget Title and axes labels and Chart legend

Complete R lab Assignment as per Instructions in Class.

https://cdn.inst-fs-iad-prod.inscloudgate.net/181b95eb-37bf-43a2-ac63-81cd33f19840/Lecture%201.R?token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6ImNkbiJ9.eyJyZXNvdXJjZSI6Ii8xODFiOTVlYi0zN2JmLTQzYTItYWM2My04MWNkMzNmMTk4NDAvTGVjdHVyZSUyMDEuUiIsInRlbmFudCI6ImNhbnZhcyIsInVzZXJfaWQiOiIxMDEyNDAwMDAwMDAwMTI3NzYiLCJpYXQiOjE2MDQyODc5ODEsImV4cCI6MTYwNDM3NDM4MX0.IrsQ2YaOqooI-cHS4mLplBqtXM_HV_E1qzK5M4-lOpnZxsmKj17v_Cnme5UY4QFT9O7xtn4MGtkf2QV0jHA3FQ&download=1&content_type=null

Analytics

Part1) 

   a) Why are the original/raw data not readily usable by analytics tasks? What are the main data preprocessing steps? List and explain their importance in analytics. 

   225 Words + 2 References

Part2) 

   a) How do you describe the importance of data in analyt- ics? Can we think of analytics without data? Explain.

   b) Considering the new and broad definition of business analytics, what are the main inputs and outputs to the analytics continuum?

   c) Where do the data for business analytics come from? What are the sources and the nature of those incoming data?

   d) What are the most common metrics that make for analytics-ready data?

   Min 200 words answer for each question.

Checklist:

APA Formatting

Part1 and Part2 needs to attached as two separate docs

Atleast 2 references for each part

Plagiarism report

Datamining Disussion:cluster of objects from a binary transaction data set.

Consider the mean of a cluster of objects from a binary transaction data set. What are the minimum and maximum values of the components of the mean? What is the interpretation of components of the cluster mean? Which components most accurately characterize the objects in the cluster?

Please ensure to use APA7 for your references and citations as you support your initial post.

Initial posts are to be 250 words minimum and are due by Thursday.

Replies (2) are 150 words minimum and are due by Sunday.

cs

 

Please solve three (3) programming problems related to the content presented in Chapter 13 in your text. You can find the programming problems in the attached file (Module 6 Programming Problems Worksheet.docx (Links to an external site.)).

  • Download the worksheet and save it as Mod6-Worksheet-Programming-Last-First.docx. For example, Mod6-Worksheet-Programming-Smith-John.docx.
  • Consider the problem, design an algorithm (or algorithms) that would solve the problem, and then implement the algorithm in Java.
  • Create a new folder and name it as Mod6-Java-Programming-Last-First, for example, Mod6-Java-Programming-Smith-John.
  • Write the source code for each problem and save them as .java files in the folder you created. There are three programming problems for this module so you should have three .java files. Name your java files as Mod6Problem#.java, for example, Mod6Problem1.java.
  • Please insert the algorithm written in pseudocode as a comment in the beginning of your program.
  • Take screenshots of your running program – you can take screenshots using PrintScreen or any tool that you are familiar with, making sure that the console window in which you run the program appears on the screen.
  • Copy the screenshots in the worksheet. If your program has different outcomes, take screenshots of each variation.

Submission

  • Compress the folder that saves all of your java files as .zip file. Please note don’t save the worksheet in the same folder as they need to be submitted separately.
  • Submit the following two files as attachments by clicking the Submit Assignment above.
    • Mod6-Java-Programming-Last-First.zip.
    • Mod6-Worksheet-Programming-Last-First.docx.

Grading

This assignment is worth 20 points. You can find the grading rubric for each program in the worksheet attached above.

  • PayCalculator (6 pts).
  • MessageEncoder (8 pts).
  • MessageDecoder (6 pts).

Page 3 of 6 in Module 6