Answer:
b. make sure the program solves the original problem
Explanation:
This is important so as to avoid logical errors. Logical errors unlike compiler or run time errors will not stop your code from compilling and executing but after your program compiles and runs, but does the wrong thing by given you unexpected results
This is the reason why validation of results after your code is completed is important in this way you are sure the program solves the original problem.
Answer:
# include <iostream>
#include<stdio.h>
using namespace std;
bool IsLeapYear(int y)
int main()
{
int y;
cout<<"Enter the Year to check Leap or Not"<<endl;
cin>>y;
IsLeapYear(int y);
getch();
}
bool IsLeapYear(int y)
{
if (y%4==0)
{
if (y%100==0)
{
if (y%400==0 )
{
cout<"The year is leap Year";
}
else
{
cout<<" The year is not Leap Year";
}
}
else
{
cout<<"The year is Leap Year" ;
}
}
else
{
cout<<"The year is not Leap Year";
}
}
Explanation:
In this program a function has been defined named as IfLeapYear, to check that whether the entered year is leap year or not. An year taken as integer data type named as y to enter the year to check. If the year is divisible by 4 but not divisible by 100 is the leap year. If the year is divisible by 4, divisible by 100 and also divisible by 400 is the century year and is also the leap year.
To check all the statements, Nested if-else conditions has been used to check multiple requirements of the leap year.
Answer:
When a movie or television show shoots on location, it brings jobs, revenue, and related infrastructure development, providing an immediate boost to the local economy. ... The film and television industry supports 2.5 million jobs, pays out $188 billion in total wages, and comprises over 93,000 businesses.
Explanation:
<em>The film industry is estimated to be worth of billions of dollars. Various kinds of people are employed to work as actors, actresses, cameramen, producers, directors, managers and company representatives. It also provides secondary jobs for persons as props, costume designers, caterers, sound, lighting and electronics.</em>