Software, which contains coded information that is almost like instructions for your computer.
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
A designer should always balance the placement of text and
graphics and create room for every element to breathe. When this is followed,
the flyer template will create a feeling of balance and calm.
Consider adding a border: Borders can help your flyer or
newsletter stand out wherever it is placed. Selection of certain colors, Italics and ALL CAPS can draw attention to particular points in a text.
Boost contrast with style, color and font size: Always use
font weight to differentiate sections of text. Many fonts offer regular, bold
and light options for font weight.
Align text for a balanced look: A designer should consider
using a grid system that contains intersecting vertical and horizontal lines
that are often based on optimal proportions for the document’s size. Aligning
text in the center will give a pleasant symmetrical look.
Answer:
The representation of 100.0 in the floating-point representation is computed as follows: First convert the given number 100.0 in the binary form. 10010 = 11001002 the binary representation.
Explanation: