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
The software/system that helps make sure the retail firm doesn't have a stockout is supply chain management software.
Supply chain management is a software that comprehends all the techniques and processes that convert the starting material into the finished or final product. The supply chain management software is cost-effective and time-saving.
Creating a strategy, raw materials, manufacturing, distribution, and returns are the five important ingredients of supply chain management software.
The software helps the retail firm in improving customer service by ensuring that there is a continuous flow of the starting material so that the production process does not stop indefinitely which results in good relationships with the supplier and customer.
The software also performs the functions of processing customer requirements, sourcing, and shipping management.
To know more about supply chain management, click here:
brainly.com/question/28282152
#SPJ4
Answer:
The delimiter use is "::".
Explanation:
The Java inbuilt String.split( ) function is use to split a String into an array of String.
The split( ) takes delimiter as arguments/parameter which determines at which point the string is to be broken down into different part/token.
From the above code snippet;
Each line in the file a.txt that is not null is splitted using the statement below:
String[ ] v = line.split("::");
The line is splitted using "::" as delimiter and the resulting array is then assigned to the variable 'v'.
For instance, a line in the file could take the form:
John::Smith::Music
When it is splitted,
String lname = John;
because lname make reference to index 0 of the array.
String fname = Smith;
because fname make reference to index 1 of the array.
String dept = Music;
and dept make reference to index 2 of the array.