Questions & AnswersComputer Science

AT2 Scenario You are employed by Midtown IT as a Software...

Question
Answered step-by-step
Asked by SuperButterfly3758 on coursehero.com

AT2 Scenario You are employed by Midtown IT as a Software...

AT2 Scenario

You are employed by Midtown IT as a Software Developer. You have been assigned to a new project, and your task is to design three training activities for Midtown IT junior software developers. The activities include designing algorithmic solutions for three given scenarios and coding the solutions. 

 

Your teacher/assessor will take on the role of the Project Manager for this project.

 

Purpose: 

Training activities for Midtown IT junior software developers

Business requirements: 

Midtown IT requires that the algorithmic solutions and corresponding scripts are:

  • Fit for purpose
  • Efficient in the use of language syntax structures and resources
  • Compliant with Midtown IT Python Coding Style Guidelines
  • Tested and verified 
  • Secure in terms of network and data security, including data validation and sanitation

Scripting language:              

Python

 

 

Automation Processes Activities

Activity 1: Rock Paper Scissors - 2 players

This activity requires an algorithmic solution and corresponding script implementation for a two-player version of the Rock Paper Scissors game. 

HINT: The game has nine different (9) possibilities.

 

The solution must:

  • Include a welcome message to the game
  • Read players' names
  • Account for all possibilities
  • Accept input choices from both players
  • Output score (depending on choices)
  • "Thank you for playing" message

 

Activity 2: Multiplication Tables Generation 

This activity requires an algorithmic solution and corresponding script implementation to automatically generate a multiplication table for a specific number and print the multiplicand, multiplier (also called factors), and product for a given number of times. For example, output the 6 times table from 1 to 12. 

 

 

 

 

 

 

Multiplicand x Multiplier = Product

5         x         6      =     30

1 x 6 = 6

2 x 6 = 12

3 x 6 = 18

4 x 6 = 24

5 x 6 = 30

6 x 6 = 36

7 x 6 = 42

8 x 6 = 48

9 x 6 = 54

10 x 6 = 60

11 x 6 = 66

12 x 6 = 72

 

The solution must:

  • Include a welcome message 
  • Reads user name
  • Accept input (multiplicand, multiplier, times) from user
  • Confirm user input
  • Process input
  • Display output (depending on input)
  • Display "Thank you" message

 

 

 

Activity 3: Caesar Cipher 

This activity requires an algorithmic solution and corresponding script to implement a Caesar Cipher. This is a simple encryption cipher that uses the 26 uppercase letters of the English alphabet. Given a specific encryption key, the Caesar cipher shifts the letters in the plaintext (the unencrypted message) so that they are mapped to new letters in the ciphertext (the encrypted message).

As an example, imagine that the encryption key is the number +3. This means that each letter in the plaintext is shifted three places to the right: 

 

 

 

Wikipedia https://en.wikipedia.org/wiki/Caesar_cipher 

The letter 'B' becomes the letter 'E', the letter 'D' becomes the letter 'G' etc. For the letters near the end of the English alphabet, we "wrap around" as follows:

Plaintext letterUVWXYZ
Ciphertext letterXYZABC

In this way, all 26 letters in the plaintext are mapped to 26 different letters in the ciphertext.

Here is an example of a plaintext message encrypted by the Caesar cipher with a shift of +3:

Plaintext (spaces removed):MEETMEINTHEHOTELLOBBYATTHREEPM
Ciphertext:PHHWPHLQWKHKRWHOOREEBDWWKUHHSP

 

The spaces in the plaintext are removed because they cannot be ciphered.

To decrypt this message, we apply a negative shift of the same distance, i.e. -3, to shift each letter 3 places to the left, revealing the original plaintext:

HINT: Convert all letters, in the original message, to upper case. Convert full stop '.' to the letter 'X' (as 'X' is rare, we can use it to separate sentences).

Challenges: Dealing with input such as the following string:

4000 'Words... $#^!&*%! words, we hate them!!!'?

The solution must:

  • Accept the plaintext string
  • Prepare/convert plaintext as required
  • Accept cipher key
  • Generate cipher
  • Capture and report potential errors
  • Generate ciphertext

Answer & Explanation

Solved by verified expert
Answered by lcuristiandave on coursehero.com

sectetur adipiscing elit. Nam lacinia pulvi

sectetur adipisci

sectetur adipiscing elit. Nam lacinia pulvinar torto

 

sectetur adipiscing

sectetur adipiscing elit. Nam lacinia pulv

sectetur adipiscing elit. Nam lacinia pulv

 

sectetur adi

sectetur adipiscing elit.

CliffsNotes Logo

Unlock access to this and over
10,000 step-by-step explanations

Unlock Explanation

Have an account? Log In

<p>sectetur adipiscing</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus</p><p> </p><p>sectetur adipiscing elit. Nam laci</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus ef</p><p>sectetur adipiscing elit. Nam</p><p>sectetur adipiscing elit. Nam lac</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat,</p><p>sectetur adipiscing elit. Nam lacini</p><p>sectetur adi</p><p>sectetur adipiscing elit. Nam lacinia pu</p><p> </p><p>sectetur adipiscing elit. Nam lacinia pulvina</p><p>sectetur adipiscing elit</p><p> </p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facili</p><p>sectetur adipiscing elit. Nam l</p><p>sectetur adipisc</p><p>sectetur</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque d</p><p> </p><p>sectetur adipiscing elit. Nam laci</p><p>sectetur adipiscing elit. Nam l</p><p> </p><p>sectetur adipiscing elit. Nam lacinia pulvin</p><p>sectetur adipisci</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor</p><p> </p><p>sectetur adipisc</p><p>sectetur adipiscing elit. Nam lacinia</p><p> </p><p>sectetur adipiscing elit.</p><p>sectetur a</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis.</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec fa</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor ne</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilis</p><p> </p><p>sectetur adipiscing elit. Nam l</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur l</p><p> </p><p>sectetur adipiscing el</p><p>sectetur adipiscing elit. Nam lacinia pulv</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor ne</p><p> </p><p>sectetur adipiscing elit. Nam lacinia pulvinar t</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facili</p><p> </p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellen</p><p>sectetur adipiscing elit. Nam</p><p>sectetur adipisc</p><p>sectetur adipiscing el</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur lao</p><p> </p><p>sectetur adipiscing elit. Nam</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec faci</p><p><br/>sectetur adipiscing elit.</p><p>sectetur adipisci</p><p>sectetur adipiscing elit. Nam laci</p><p> </p><p>sectetur adipiscing elit. Nam</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tor</p><p> </p><p>sectetur adipiscing elit. Nam lacinia p</p><p>sectetur adipiscing elit. N</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facil</p><p> </p><p>sectetur ad</p><p>sectetur a</p><p>sectetur adipiscing elit.</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus ef</p><p> </p><p>sectetur adipiscing elit</p><p>sectetur adipiscing el</p><p>sectetur adipiscing elit. Nam</p><p>sectetur adipiscing elit. Nam</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibu</p><p>sectetur adipiscing elit. Nam lacinia pul</p><p>sectetur adipisc</p><p>sectetur adipiscing elit. Nam lac</p><p> </p><p>sectetur adipiscing elit. N</p><p>sectetur adipiscing elit. Nam lacinia p</p><p> </p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesq</p><p>sectetur adipiscing elit. Nam l</p><p>sectetur adipisci</p><p>sectetur adipiscing e</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque da</p><p> </p><p>sectetur adipiscing e</p><p>sectetur adipiscing elit. Nam lacinia pulvinar t</p>

Step-by-step explanation

sectetur adipiscing e

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultric


sectetur adipiscing elit. Nam la

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pelle

 

sectetur adipiscing elit. Nam lacinia pulvina

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. P

 

sectetur adipiscing elit. Nam

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam r

 

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce

 

sectetur adipis

 

sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet.sectetur adipiscing elit. Nam lacinisectetur adipiscing elit.

Get unstuck with a CliffsNotes subscription

Example CliffsNotes Question and Answer
Unlock every step-by-step explanation, download literature note PDFs, plus more.Get Access

Related Q&A