Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question5. (4 points) Write a function logFun(x) that takes as input a positive number x and solves the following equation for y and returns y.

image text in transcribed
Question5. (4 points) Write a function logFun(x) that takes as input a positive number x and solves the following equation for y and returns y. The equation is 104y=x+3. Question6. (4 points) Suppose that a cashier owes a customer some change and that the cashier only has coins ie. quarters, dimes, nickels and pennies ( 25 cent, 10 cent, 5 cent, and 1 cent coins). Write a Python function named min_coins that determines the minimum number of coins that the cashier can return. The function doesn't take any parameter, reads the dollar amount from the keyboard, calculates the minimum number of coins owed to the customer and returns it. Use the following algorithm

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

Students also viewed these Databases questions