Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variable
int inp_month;
cout<<"Enter month:";
// read month
cin>>inp_month;
// if month is february
if(inp_month==2)
cout<<"Number of days in month:28"<<endl;
// if month is 4 or 6 or 9 or 11
else if(inp_month==4||inp_month==6||inp_month==9||inp_month==11)
cout<<"Number of days in month:30"<<endl;
else
// for others month
cout<<"Number of days in month:31"<<endl;
return 0;
}
Explanation:
Read month from user and assign it to variable "inp_month".If month is 2 then there is 28 days in the month.If input month is 4 or 6 or 9 or 11 then there is 30 days in the month.For other month there will be 31 days in month.We assume there is no leap year.
Output:
Enter month:4
Number of days in month:30
Answer:
in the paragraph
Explanation:
The central limit theorem is known to be important to the study of sampling distributions because it enables us to disregard the shape of the population when the value of n is relatively large. Was this answer helpful?
Answer: <em>The kinetic energy of the 20 gram ball is half the kinetic energy of the 10 gram ball.</em>
<em />
Explanation: :)
Answer:
def remove_duplicates(lst):
no_duplicate = []
dup = []
for x in lst:
if x not in no_duplicate:
no_duplicate.append(x)
else:
dup.append(x)
for y in dup:
if y in no_duplicate:
no_duplicate.remove(y)
return no_duplicate
Explanation:
Create a function called remove_duplicates that takes one parameter, lst
Create two lists one for no duplicate elements and one for duplicate elements
Create for loop that iterates through the lst. If an element is reached for first time, put it to the no_duplicate. If it is reached more than once, put it to the dup.
When the first loop is done, create another for loop that iterates through the dup. If one element in no_duplicate is in the dup, that means it is a duplicate, remove that element from the no_duplicate.
When the second loop is done, return the no_duplicate
Answer: D. The phone can represent the photo in either digital or analog formats depending on the sampling technique that is used
Explanation:
Photos can either come out as analog or digital with digital formats having better overall quality overall. Digital photos are taken with digital cameras and so use electronic detectors while analog photography uses chemical processes.
The thing about photos taken by smartphones is that they can be represented as either digital or analog formats. It simply depends on the sampling techniques used.