Answer:
// here is code in java.
import java.util.*;
// class definition
class SammysRentalPrice
{
// main method of the class
public static void main(String[] args) {
// scanner object to read input from user
Scanner s=new Scanner(System.in);
// ask user to enter year
System.out.print("Enter the rented minutes:");
// read minutes
int min=s.nextInt();
// find hpurs
int hours=min/60;
// rest of minutes after the hours
min=min%60;
// total cost
int tot_cost=(hours*40)+(min*1);
// print hours,minute and total cost
System.out.println("total hours is: "+hours);
System.out.println("total minutes is: "+min);
System.out.println("total cost is: "+tot_cost);
}
}
Explanation:
Read the rented minutes of an equipment from user with the help of scanner object. Calculate the hours and then minutes from the given minutes.Calculate the cost by multiply 40 with hours and minute with 1.Add both of them, this will be the total cost.
Output:
Enter the rented minutes:140
total hours is: 2
total minutes is: 20
total cost is: 100
IMAP protocols is used by an email client to retrieve messages from an email server, giving users the option to keep mail messages on the server.
<h3>What is IMAP on one's email account?</h3>
IMAP is a term that connote Internet Message Access Protocol. IMAP helps one to be able to access the same inbox from a lot of devices.
Hence, IMAP protocols is used by an email client to retrieve messages from an email server, giving users the option to keep mail messages on the server.
Learn more about email server from
brainly.com/question/15710969
#SPJ1
<span>To assign a conditional value, use the IFF function. It is an abbreviation for Immediate If. It is a function </span>on spreadsheets that returns the second or third parameter based on the evaluation of the first parameter. <span>You use </span>IIf<span> to determine if another expression is true or false. If the expression is true,
</span>IIf<span> returns one value; if it is false, </span>IIf<span> returns another.</span>