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 How to be a breathtaking Programmer Telegram | DID YOU KNOW?

Date: |

How Does Bitcoin Work?

Bitcoin is built on a distributed digital record called a blockchain. As the name implies, blockchain is a linked body of data, made up of units called blocks that contain information about each and every transaction, including date and time, total value, buyer and seller, and a unique identifying code for each exchange. Entries are strung together in chronological order, creating a digital chain of blocks. “Once a block is added to the blockchain, it becomes accessible to anyone who wishes to view it, acting as a public ledger of cryptocurrency transactions,” says Stacey Harris, consultant for Pelicoin, a network of cryptocurrency ATMs. Blockchain is decentralized, which means it’s not controlled by any one organization. “It’s like a Google Doc that anyone can work on,” says Buchi Okoro, CEO and co-founder of African cryptocurrency exchange Quidax. “Nobody owns it, but anyone who has a link can contribute to it. And as different people update it, your copy also gets updated.”

What Is Bitcoin?

Bitcoin is a decentralized digital currency that you can buy, sell and exchange directly, without an intermediary like a bank. Bitcoin’s creator, Satoshi Nakamoto, originally described the need for “an electronic payment system based on cryptographic proof instead of trust.” Each and every Bitcoin transaction that’s ever been made exists on a public ledger accessible to everyone, making transactions hard to reverse and difficult to fake. That’s by design: Core to their decentralized nature, Bitcoins aren’t backed by the government or any issuing institution, and there’s nothing to guarantee their value besides the proof baked in the heart of the system. “The reason why it’s worth money is simply because we, as people, decided it has value—same as gold,” says Anton Mozgovoy, co-founder & CEO of digital financial service company Holyheld.

Programming Challenges How to be a breathtaking Programmer from us


Telegram Programming Challenges
FROM USA