Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5-Python-MessageEncrypt Highest grade Given four lists (of characters, which are also known as strings), transform and concatenate them to form an encrypted message. 1. The

image text in transcribed
image text in transcribed
5-Python-MessageEncrypt Highest grade Given four lists (of characters, which are also known as strings), transform and concatenate them to form an encrypted message. 1. The first list of characters should be "rotated left 2" where the first 2 chars are moved to the end. Example: "Hello" -> "lloHe". (You can assume the string length will be at least 2.) 2. The second list of characters should not contain the first and last character. Example: "coding" > "odin" 3. The third list of characters should contain only the first half of the string. Example: "woohoo" -> "woo" 4. The last list of characters should contain the tags that enclose the entire message. For example, if the enclosure tag is ">>", the entire concatenated message will be >>. You should assume that the tag entered will always be 6 characters long. Hint: you learned about list slicing in Python Video #5 this week. You can slice strings in the same way you can slice lists! Sample Input Hello coding woohoo KNOOD Submit 6-Python-More GradeCalculation Highest grade: Calculates the overall grade for a course with three equally weighted exams (graded out of 100) that account for 60% of the overall grade and four equally weighted programming assignments (graded out of 50) that account for 40% of the overall graded. Hint: The overall grade can be calculated as 0.6 * averageExamScore + 0.4 * averageProgScore Sample Input Two lists: 90 50 80 20 48 50 49 1. Store the first three inputs in a list that contains the three exam scores. Every element should be of type float 2. Store the next four inputs in a list that contains the four assignment scores. Every element should be of type float Submit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago

Question

Define Management by exception

Answered: 1 week ago