Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a function that accepts the name and grade of the student. Grade distribution should be the following: A: Score >=90 B: Score

image

1. Write a function that accepts the name and grade of the student. Grade distribution should be the following: A: Score >=90 B: Score >=80 C: Score >=70 D: Score >=60 The function should return the following if called student_grade("John", 87) Output: The grade of John is B The program should also print congratulations if the student's grade is A student_grade("Laura", 90) Output: Congratulations! The grade of Laura is A 2. Write a function that calculates the square root of a number. The function should employ the ifelse function. If the value contained in x is negative it should return NA. 3. Select any 18 alphabets from English letters without repetition.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here are the solutions to the three tasks 1 Function to Determine Student Grade python def studentgr... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

How do you add two harmonic motions having different frequencies?

Answered: 1 week ago