Answer and explanation:
An ".action" file is a file written in Xcode and used by the <u>Automator</u> program, whose function is to create automations in macOS. Action files contains specific actions that can be combined with other actions to create an automated process.
This type of file is used to automate tasks in <u>macOS</u>, usually with Finder (file manager) or another program.
Action files are especially useful for repetitive tasks, such as creating sequential batch folders, editing images, or deleting files.
Answer:
Data Flow Diagram
Explanation:
Data flow diagram is representation of data which is processed in terms of input and output.It is a tool for designing the structure for a software.Rectangles,square and circles are used in representing the flow of information.
DFD consists two components
- Layers-It consist many layers,the top layer is called context diagram.
- Levels-The first level shows the main process of the system.
Answer:
See explaination
Explanation:
public class YearToAnimal {
static void yearToAnimalZodiac(int year){
String[] animals = {"Rat", "Ox", "Tiger", "Rabbit", "Dragon", "Snake", "Horse", "Goat", "Monkey", "Rooster", "Dog", "Pig"};
int baseYear = 2020;
int index = (year - baseYear) % 12;
// in case of negative index, change it to positive
if(index < 0)
index = 12 + index;
System.out.println(year + ": " + animals[index]);
}
// some test cases
public static void main(String[] args) {
yearToAnimalZodiac(2020);
yearToAnimalZodiac(2021);
yearToAnimalZodiac(2019);
yearToAnimalZodiac(2009);
yearToAnimalZodiac(2008);
yearToAnimalZodiac(2007);
}
}