Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 01 (10 points) Write a Python script that will prompt for the scores of the 6 homework and 7 lab assignments in this course,

Task 01 (10 points)

Write a Python script that will prompt for the scores of the 6 homework and 7 lab assignments in this course, and then calculate the amount of extra credit you would need in order to get a 90% or higher in the class. You are allowed to ask for the scores to be entered in any format and in as many prompts as you like.

Input string

Expected output of script

Enter your hw scores:

30, 35, 30, 35, 40, 40

Enter your lab scores:

80, 80, 85, 80, 90, 90, 100

you need at least 80 points of extra credit to get a 90% in this class

Hint: Remember how many total points are available for this course = 1000

Task 02 (10 points)

Write a Python script that will continually prompt for a string in the following format and do the necessary calculations based on the given operator using a separate function for each operator. It should be able to perform addition, subtraction, multiplication, division, exponentiation (where first number is base and second is power), modulo.

Input string

Expected output of script

Enter calculation: add 1 2 3 4

Enter calculation: sub 20 30 100 50

Enter calculation: mul 60 7

Enter calculation: div 10 5

Enter calculation: exp 3 2

Enter calculation: mod 3 12

Sum: 10

Difference: -160

Product: 420

Quotient: 2

Power: 9

Modulus: 3

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

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

What is the procedure for preparing a trial balance?

Answered: 1 week ago