Write your implementation in a module you will name

Assignment Help Management Information Sys
Reference no: EM132276375

Lab Activity 5

Lab Activity 5.1

Implement a program that starts by asking the user to enter a login id (i.e., a string). The program then checks whether the id entered by the user is in the list ["joe", "sue", "hani", "sophie"] of valid users. Depending on the outcome, an appropriate message should be printed. Regardless of the outcome, your function should print "Done." Before terminating. Here is an example of a successful login:

>>>

Login: joe

You are in!

Done.

And here is one of that is not:

>>>

Login: john

User unknown

Done.

Lab Activity 5.2

Implement a program that requests from the user a list of words (i.e., strings) and then prints on the screen, on per line all four-letter strings in the list.
>>>

Enter word list: ["stop", "desktop", "top", "post"]

stop

post

Lab Activity 5.3

Write the for loop that will print these sequences of numbers, one per line, in the interactive shell.

(a) Integers from 0 to 9 (i.e., 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)

(b) Integers from 0 to 1 (i.e., 0, 1)

Lab Activity 6

Lab Activity 6.1

Write the for loop that will print the following sequences of numbers, one per line.

(a) Integers from 3 up to and including 12

(b) Integers from 0 up to but not including 9, but with a step of 2 instead of the default of 1 (i.e., 0, 2, 4, 6, 8)

(c) Integers from 0 up to but not including 24 with a step of 3

(d) Integers from 3 up to but not including 12 with a step of 5

Lab Activity 6.2

Define, directly in the interactive shell, function perimeter() that takes, as input, the radius of a circle (a nonnegative number) and returns the perimeter of the circle. A sample usage is:

>>>perimeter(1)

6.283185307179586

>>>perimeter(2)

12.566370614359172

Remember that you will need the value of π (defined in module math) to compute the perimeter.

Lab Activity 6.3

Implement function average() that takes two numbers as input and returns the average of the numbers. You should write your implementation in a module you will name average.py.

A sample usage is:
>>> average (1,3)
2.0
>>> average (2, 3.5)
2.75

Reference no: EM132276375

Questions Cloud

Essay on philosophy of leadership and application : Organisational Behaviour and Leadership - Assessment – Individual essay - Demonstrate a critical understanding of organisational behaviour
What decisions did the fbi and saic make : What decisions did the FBI and SAIC make during development that increased risk? How can these be avoided in the next project that the FBI takes on?
Create a doubly linked list : From your Singular Linked List. Create a Doubly Linked List. Use this to create a prioritized list by use. Bring to front those links recently queried.
Discussion of key elements of the model of stewardship : Review the models of stewardship presented by Wilson (2016) and Block (1993) - analyse the potential benefits and challenges that might occur upon employing
Write your implementation in a module you will name : Define, directly in the interactive shell, function perimeter() that takes, as input, the radius of a circle (a nonnegative number) and returns the perimeter.
What do you see as the benefits of such an effort : Discuss why a company would want to go through the expense and effort to develop a Data Warehouse environment. What do you see as the benefits.
Disucss the term managing information systems : This capstone course will require a BEST PRACTICES PRESENTATION which will consist of a PowerPoint presentation. The project presentation will be a detailed.
How reasonable do you feel that the hipaa rules : How reasonable do you feel that the HIPAA rules for database security and the penalties for violations are?
How situational awareness is a driver for detection control : The increasing sophistication of cyber attacks have shown that no controls are 100% effective, and some compromises do occur.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd