Answer:
2
Explanation:
The second option is the only one that will work. The last would work but doesn't make the code any shorter.
MS-DOS is a command-line operating system.
Therefore, the best answer is Command-line.
The correct answer is A. Only technician B is correct because I don't believe carbon is form of resistors.
The answer is a Scroll bar, the description fits perfectly because you need to move it to see more of the content you are viewing, and it wont be completely. when the item does appear completely on screen then the bar is relatively large and there is no need for scrolling, however the opposite occurs during when you cannot see all of it.
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:
- Declare a variable for caffeine and take the input from user.
- Print the results by dividing the caffeine by relevant Half Life.
- Use setprecision function to display the result up to 2 decimal places.