Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python, cannot have a built in function or string manipulation NO LOOP The function will take a two digit number and will have a parameter

Python, cannot have a built in function or string manipulation NO LOOP

The function will take a two digit number and will have a parameter in base 10 or decimal. There will be a three digit 8 number that will return, the number is equivalent, it may begin with a zero and it will be a maximum of three digits. To get the digit of the most significant position you must use floor division when converting to find how many times 8**2 will go into the parameter. Then use modulus to find the other positions (8**1 and 8**0). Then put together each singular digit using an f string. The decimal number 71 is equal to 1*8**2 + 6*8**1 + 7*8**0 two digit number returned and positive

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

Question

dy dx Find the derivative of the function y=(4x+3)5(2x+1)2.

Answered: 1 week ago

Question

Draw and explain the operation of LVDT for pressure measurement

Answered: 1 week ago

Question

6. Vanguard

Answered: 1 week ago

Question

1. PricewaterhouseCoopers

Answered: 1 week ago