Telegram Group & Telegram Channel
Forwarded from Ayoob Saad AbdulWahid /A
Fix our phones
____
Many of us plug our phones in before going to bed to let it charge while we're asleep, and we all know how smart our phones are, because they know when the phone is fully charged to stop providing it with power.
Except that there's an issue: the phone is running a lot of tasks in the background and that will cause the phone to lose some of its energy, therefore, the charger will sense that and start charging again, and that can happen many times and can damage our phones.
Your task is:
Write a function that takes the percentage of charge as an input and ask the user if they want to charge in "sleep mode". The sleep mode stops providing the phone with power when it gets to 100% and doesn't start charging again unless it's less 95%, if it gets less 95% then it starts charging until 100%, and keeps repeating the process.



tg-me.com/prograchallenges/517
Create:
Last Update:

Fix our phones
____
Many of us plug our phones in before going to bed to let it charge while we're asleep, and we all know how smart our phones are, because they know when the phone is fully charged to stop providing it with power.
Except that there's an issue: the phone is running a lot of tasks in the background and that will cause the phone to lose some of its energy, therefore, the charger will sense that and start charging again, and that can happen many times and can damage our phones.
Your task is:
Write a function that takes the percentage of charge as an input and ask the user if they want to charge in "sleep mode". The sleep mode stops providing the phone with power when it gets to 100% and doesn't start charging again unless it's less 95%, if it gets less 95% then it starts charging until 100%, and keeps repeating the process.

BY Programming Challenges


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/prograchallenges/517

View MORE
Open in Telegram


Programming Challenges Telegram | DID YOU KNOW?

Date: |

Launched in 2013, Telegram allows users to broadcast messages to a following via “channels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

Programming Challenges from us


Telegram Programming Challenges
FROM USA