Answer:
#include <iostream>
#include<iomanip>
using namespace std;
int main()
{
double caffeineMg;
cin>>caffeineMg;
cout<<"After 6 hours: "<<fixed<<setprecision(2)<<caffeineMg/2.0<<" mg\n";
cout<<"After 12 hours: "<<fixed<<setprecision(2)<<caffeineMg/4.0<<" mg\n";
cout<<"After 24 hours: "<<fixed<<setprecision(2)<<caffeineMg/8.0<<" mg\n";
return 0;
}
Explanation:
- Take the caffeine as input from user.
- Calculate by dividing this value with relevant half life.
- Use setprecision(2) to display 2 digits after decimal point.
Answer:
Put the Computer to sleep or hibernate Mood
Explanation:
The best way to save power when the computer will not be use for an extended period is to put the computer to sleep or hibernate mood depending on the OS (Operating System) you are using.
For instance in windows 10, all you need do is to Press the Windows key on the keyboard, then click on Sleep.
Answer:
1. Generate a random number
2. Ask the user for a guess.
3. Compare the user's answer to the correct number.
4. Give the user a hint as to whether their guess is too high or too
Explanation:
Leave a like and brainist if this helped
Answer:
management information
Explanation:
management information systems are a specific form of IT that managers design in order to have access to specific information which they need to perform job effectively.