Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Create a function called creditsPerQuarter. It will receive parameters: student, numCreds, numCourses. You will pass in a students name, the number of credits each

Python

  1. Create a function called creditsPerQuarter. It will receive parameters: student, numCreds, numCourses. You will pass in a students name, the number of credits each course they are taking is and the number of courses they are taking. Within the function, you will calculate the total number of credits that student has that quarter. You will RETURN the following string: (student name) is taking (number of courses) courses and each course is (number of credits each course is) for a total of (calculated total credits). For example: If the student is Bob and he is taking 4 courses with 3 credit each it would read exactly: "Bob is taking 4 courses and each course is 3 credits for a total of 12."

You will call creditsPerQuarter three times and pass in these arguments:

  • Student Name: Wade, Credit per Course: 3, Number of courses: 4
  • Student Name: Jane, Credit per Course: 3, Number of courses: 5
  • Student Name: Evan, Credit per Course: 5, Number of courses: 3

Your output should look like this exactly:

Wade is taking 4 courses and each course is 3 credits for a total of 12. Jane is taking 5 courses and each course is 3 credits for a total of 15. Evan is taking 3 courses and each course is 5 credits for a total of 15.

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

Ai And The Lottery Defying Odds With Intelligent Prediction

Authors: Gary Covella Ph D

1st Edition

B0CND1ZB98, 979-8223302568

More Books

Students also viewed these Databases questions

Question

Explain the sources of recruitment.

Answered: 1 week ago

Question

Differentiate sin(5x+2)

Answered: 1 week ago

Question

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago