Answer:
In Java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int mnth, yr;
Scanner input = new Scanner(System.in);
System.out.print("Month: "); mnth = input.nextInt();
System.out.print("Year: "); yr = input.nextInt();
boolean lpYear = (yr % 4 == 0 && yr % 100 != 0) || (yr % 400 == 0);
if(mnth == 1 || mnth == 3 || mnth == 5 || mnth== 7 || mnth == 8 || mnth == 10 || mnth == 12){
System.out.print("31 days"); }
else if(mnth == 2){
System.out.print(((lpYear) ? "29 days" : "28 days")); }
else if(mnth == 9 || mnth == 6 || mnth == 4 || mnth== 11){
System.out.print("30 days"); }
else{ System.out.print("Invalid"); }
}
}
Explanation:
See attachment for complete program where comments were used as explanation.
Answer:
d. transition
Explanation:
-Slide layout shows the design and formatting for everything you put in a slide.
-Video allows you to insert a video in the presentation.
-Animation allows you to put effects in the objects that you have in the presentation.
-Transition is the effect you can see in the presentation when you move from one slide to the other one and it helps you to control the speed.
According to this, the answer is that the presentation software element that you can use to control the speed between slides in a presentation is transition.
Answer:
Arguments: "blue" and "gray"
Parameters: x and y
Explanation:
In programming, a function can take zero or one or more than one input values. These input value will be held by the variables which are called parameters. In this code snippet, x and y are parameters of wearIt function.
On another hand, when calling a function, we provide the values to the function and the values provided are termed as arguments. In this case, we provide the string blue and gray which are held by shirt and pants variables respectively to the function wearIt. The string "blue" and "gray" will then be passed to parameter x and y which will be processed in the function.
The answer is D. All the other answers describe what a budget CAN be like, not necessarily what it is for everyone, if that makes sense.