Answer: Submenu
Explanation: Submenu is the menu that is accessible through the other menu. If the user opens a menu an selects a option , if that option has further menu containing other options is an example of submenu.
Other given option are incorrect because formal list the list containing objects, nested menu is type of building and dropping the menu items and recursive menu work in the recursive manner.Thus, the correct option is submenu.
This is for Python
numbers = [7, 3, 6, 9, 0]
print(numbers.sort())
Output: [0, 3, 6, 7, 9]
numbers = [7, 3, 6, 9, 0]
print(numbers.sort(reverse = True))
Output: [9, 7, 6, 3, 0]
The responsibility for failures was deflected away from the automated parts of the system (and the humans, such as engineers, whose control is mediated through this automation) and placed on the immediate human operators, who possessed only limited knowledge and control.
Answer:
To check if the year comes under each 100th year, lets check if the remainder when dividing with 100 is 0 or not.
Similarly check for 400th year and multiple 0f 4. The following C program describes the function.
#include<stdio.h>
#include<stdbool.h>
bool is_leap_year(int year);
void main()
{
int y;
bool b;
printf("Enter the year in yyyy format: e.g. 1999 \n");
scanf("%d", &y); // taking the input year in yyyy format.
b= is_leap_year(y); //calling the function and returning the output to b
if(b==true)
{
printf("Thae given year is a leap year \n");
}
else
{
printf("The given year is not a leap year \n");
}
}
bool is_leap_year(int year)
{
if(year%100==0) //every 100th year
{
if(year%400==0) //every 400th year
{
return true;
}
else
{
return false;
}
}
if(year%4==0) //is a multiple of 4
{
return true;
}
else
{
return false;
}
}
Explanation:
Output is given as image