Answer:
// here is code in java.
import java.util.*;
class Solution
{
// main method of class
public static void main (String[] args) throws java.lang.Exception
{
try{
// declare variable
double caffeine;
// scanner object to read input from user
Scanner scr=new Scanner(System.in);
System.out.print("Enter the initial amount of caffeine:");
// read the initial amount of caffeine
caffeine=scr.nextDouble();
// calculate amount of caffeine after 6,12,18 hours
for(int i=1;i<=3;i++)
{
System.out.println("After "+ i*6+" hours:"+(caffeine/2)+" mg");
// update the caffeine after every 6 hours
caffeine=caffeine/2;
}
}catch(Exception ex){
return;}
}
}
Explanation:
Create a variable "caffeine" to store the initial amount of caffeine given by user. Run a loop for three time, it will calculate the amount of caffeine left after every 6 hours.First it will give the amount of caffeine left after 6 hours, then caffeine left after 12 hours and in last caffeine after 18 hours.
Output:
Enter the initial amount of caffeine:100
After6 hours:50.0 mg
After12 hours:25.0 mg
After18 hours:12.5 mg
Basic steps start with opening the program, clicking on File, then clicking on New for a new document.
Most programs open a new blank document when you open he program.
Answer:
Hey mate......
Explanation:
The smallest unit of storage is Bytes......
hope it helps you,
mark me as the brainliest,
follow me..........
The answer is Tags, sorry about putting the other answer misread question.
Answer:
Please see explanation
Explanation:
A spreadsheet is used to make calculations and payrolls etc. Different functions are used in spreadsheet. Two of them are MIN and MAX.
The MIN function gives the minimum value out of all the cells in the range.
It is written as:
= MIN(number1, number2..)
OR
= MIN(Starting_cell_address:Last_cell_address)
Similarly, MAX function gives the maximum value from the selected range of cells.
= MAX(number1, number2..)
OR
= MAX(Starting_cell_address:Last_cell_address)