slide rule was the first mechanical calculator. true or false
Answer:
False. Pascal's calculator was the first mechanical calculator invented by Blaise Pascal in the mid 17th century.
write a function, daysbewteen, which returns an integer representing the numbers of days between two dates.
Using the knowledge of computational language in python we can write the code as function, daysbewteen, which returns an integer representing the numbers of days between two dates.
Writting the code:#include <iostream>
using namespace std;
int daysInMonth(int month, int year) //function to know the days in a month
{
//array to store the days of each month for a non-leap year
int a1[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
//array to store the days of each month for a leap year
int a2[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) //if the year is a leap year
return a2[month-1]; //value from a2 array is returned
else //else if the year is not a leap year
return a1[month-1]; //value from a1 array is returned
}
int daysBetween(int y1, int m1, int d1, int y2, int m2, int d2) //function definition
{
int days = 0; //days is initialized to zero
for(int i = y1; i <= y2; i++) //for each year from y1 to y2 loop repeats
{
if(i == y1) //if i equals to y1
{
days = days + daysInMonth(m1, y1) - d1; //for m1 days is calculated and subtract d1 from that
for(int j = m1+1; j <= 12; j++) //from the months starting m1+1
{
days = days + daysInMonth(j, i); //days in each month is added to days variable
}
}
else if(i == y2) //if i equals to y2
{
days = days + d2; //d2 is added to days
for(int j = 1; j < m2; j++) //we can only check upto m2-1 month
days = days + daysInMonth(j, i); //days in each month is added to days
}
else //else
for(int j = 1; j <= 12; j++) //for each month in that year
days = days + daysInMonth(j, i); //days in that month is added to days
}
return days; //days is returned
}
int main() //main function
{
int y1, m1, d1, y2, m2, d2; //variable declarations
cin >> y1 >> m1 >> d1 >> y2 >> m2 >> d2; //reads the input
cout << daysBetween(y1, m1, d1, y2, m2, d2); //calls the function and prints returned value
return 0;
}
See more about C++ at brainly.com/question/19705654
#SPJ1
what is networking??????????????????????
Answer:
the activity or cycle of collaborating with others to trade data and create proficient or social contacts.
Explanation:
<3
What was Bill Gates purpose for starting a business?
Entrepreneur and businessman Bill Gates and his business partner Paul Allen founded and built the world's largest software business, Microsoft, through technological innovation, keen business strategy and aggressive business tactics. In the process, Gates became one of the richest men in the
What is the additional space complexity of removing an element at the back of a queue with n elements and returning the queue with all other elements in their original order?.
Dequeue() operations finish in O(1) time. The time required to remove N elements from the queue is O(N) (in total). One enqueue () operation takes O seconds (1). It takes O(N) time to add N elements to the queue (in total).
Insertion has an O(1) time complexity for a single operation, and deletion, in the worst case, has an O(n) time complexity. The amortised costs for both are O since it still takes O(n) time to remove n elements from the queue (1).
The temporal complexity of a single search in a balanced binary search tree is O(log(n)). You might have to conduct n searches in the binary tree due to the question's difficulty, making the overall computation time O(nlog(n)). The worst-case complexity of a single search in an unbalanced binary search tree is O. (n).
Learn more about queue:
https://brainly.com/question/24275089
#SPJ4
if your tired but still need to proofread your document,what should you do?
proof read it anyway
scan through it quickly
submit your work as is
walk away and come back later
Answer:
If i were to choose one i would, come back to it later. But the best thing to do is have somebody else proofread your essay, doc, or anything else, because its the best thing to have a second pair of eyes so they can suggest what you could fix or change or any opinions on your document. Not sure why you need this but i hope it helps <3
Have a great day <33 -Blazetoxic123
Answer:
A
Explanation:
Will Mark Brainliest
Why did Constantine establish a new capital of the Roman Empire in Byzantium?
Byzantium was located on trade routes and could be better protected.
Byzantium was close to Rome, so travel between the two cities was easy.
Byzantium was already a huge city that needed little construction to make it the capital.
Byzantium was located in the middle of Europe and close to the people of the Western Empire.
Answer:
Byzantium was located on trade routes and could be better protected.
Explanation:
Byzantium became the capital of the Roman Empire in 330, with the established objective of fulfilling a fundamental role in the control of the commercial routes used by Rome to the East: this city was located in the passage of these commercial routes, thus which was fundamental its protection in order to control trade in the area. In this way, it was agreed to name this city as the capital, which gave importance to the eastern region within the Empire, and allowed these trade routes to be better managed and protected by the Roman government.
A A
l Marking so other guy can get brainliest l
l l
bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong bing bong
Answer:
Is this free points? bingbongbingbongbingbongbingbongbingbongbingbong hehe have a nice day :)
Explanation:
Answer:
Thanks for the free points
Explanation:
Giving out free points lol ☺️☺️☺️☺️
which ids component is essentially the same as a sniffer in that it runs in conjunction with a network card in promiscuous mode?
Answer: . Network tap
Explanation:
A network tap is a hardware device that provides a way to access the data flow across a computer network.
A sniffer is either hardware or software that provides a way to access the data flow across a computer network.
Hence, these two IDS components are very similar.
Please please help what kind of device. is this
Answer:
uuuummmmm im pretty sure that is some type of tablet
Explanation:
sorry im not much help.........
Answer:
It's a Hard drive. It's on your pc
Explanation:
A 2-dimensional 3x3 array of ints, has been created and assigned to tictactoe. Write an expression whose value is true if the elements of any row or column or diagonal are equal.
Answer:
tictactoe[0][0]
Explanation:
Under the Home tab, controls for aligning text and objects can be found in the
Clipboard group.
Font group
Paragraph group.
Editing group.
Answer:
Paragraph Group
Explanation:
cost-effectiveness of inhaled corticosteroids in adults with mild-to-moderate asthma: results from the asthma policy model
Clinical practitioners in the United States continue to underutilize inhaled corticosteroids in the management of mild-to-moderate adult asthma.
In a cohort of patients aged 18 and older with FEV(1) values between 60% and 100% of predicted normal, the aim of this experiment was to determine the clinical effects, health-related quality of life, cost, and cost-effectiveness of inhaled corticosteroid therapy.
We compared the use of inhaled corticosteroid therapy along with quick relievers (such as short-acting beta-agonists) on an as-needed basis to the use of quick relievers alone.
To predict symptoms, acute exacerbations, quality-adjusted life years (QALYs), health care expenses, and cost-effectiveness, evaluated in both dollars per QALY gained and dollars per symptom-free day gained, a mathematical simulation model was created.
Learn more about corticosteroids:
https://brainly.com/question/28255810
#SPJ4
The complete question is '' what is the cost-effectiveness of inhaled corticosteroids in adults with mild-to-moderate asthma: results from the asthma policy model''.
What character is best in super smash bros ultimate??
Pikachu. When mastered, this Pokémon is the best character in Smash Ultimate.
Joker.
Peach. The princess has the unique ability to float mid-air, which allows her to throw out her quick and powerful aerials inches from the ground. ...
Snake. ...
Palutena.
Wario.
Pokémon Trainer.
Zero Suit Samus. ...
write a query to retrieve the empfname and emplname in a single column as ""fullname"". the first name and the last name must be separated with space.
The following is the query to retrieve the first name and the last name in a single column as the full name from the table in database named " namesInfo".
SELECT CONCAT(empfname, ' ', emplname) AS fullname FROM namesInfo;
CONTACT is a function in a database that accepts multiple columns or strings as arguments and concatenates them to create a single column or string value. A comma is placed between the arguments.
In the above query, the function CONTACT is used to display the first name and the last name as a single full name. In order to separate the first name and the last name in the resulting full name column, a space character, in single quotes (' '), is used between the arguments of the CONTACT function in the query.
You can learn more about SQL query at
https://brainly.com/question/25694408
#SPJ4
in what two ways can you reset your workspace in photoshop adobe 2020?
Answer:
right click 3 down press restart
Explanation:
The New Slide command on the Ribbon lets you choose _______.
A. transitions
B. Print settings
C. Slide layouts
D. slide dimensions
Answer:
im probably late but the answer is c.
Explanation:
i took the test! hopes this helps
The New Slide command on the Ribbon lets you choose slide layouts. Hence option C is correct.
What is slide layout?Slide layout is defined as a layout contain placeholder boxes for all of the material that appears on a slide, as well as formatting and positioning information. The dotted-line containers on slide layouts known as placeholders are where the titles, body text, tables, charts, SmartArt visuals, pictures, clip art, videos, and audio, among other things, are placed.
Click the "Home" option in the Ribbon to add a new slide in PowerPoint with the "Title and Content" slide arrangement. Afterward, select "New Slide" from the "Slides" button group. Alternatively, you can select the "Home" option in the Ribbon to enter a new slide with a different presentation layout.
Thus, the New Slide command on the Ribbon lets you choose slide layouts. Hence option C is correct.
To learn more about slide layout, refer to the link below:
https://brainly.com/question/18069723
#SPJ2
What kind of animation is used in the powerpuff girls show??
When this function is called, the smaller of two numbers is displayed. What Boolean expression would not work in line 12 in order to accomplish this goal?
Answer:
[tex]\mathbf{num1 == num2}[/tex]
Explanation:
The missing program is written as:
1 var [tex]num1[/tex] = 5;
2 var [tex]num2[/tex] = 7;
3 smallest ( ) ; →
4
5 [tex]num1[/tex] = 8;
6 [tex]num2[/tex] = 4;
7 smallest ( ) ; →
8
9 function smallest () {→
10 [tex]console.log[/tex] ( "What is smallest? " +[tex]num1[/tex] + " or " + [tex]num2[/tex] + " ? " ) ;
11
12 if (< insert code>) {
13 [tex]console.log[/tex]([tex]num1[/tex] + " is the smallest.") ;
14 } else {
15 [tex]console.log[/tex]([tex]num2[/tex] + " is the smallest.") ;
}
}
So from above, the Boolean expression that would not work in line 12 is:
[tex]\mathbf{num1 == num2}[/tex]
The Boolean expression would be a logical assertion that is either TRUE or FALSE. It may compare the data of any type as long since both components of an expression have the same basic data.
This information can be tested to discover whether it is equal to, larger than, or less than another data.In the attached file, except "num1 == num2" all choices are correct because it uses the less than and greater than (>,<) Operator which is used to compare the value.Therefore, the answer is "num1 == num2".
Please find the complete question in the attached file.
Learn more:
brainly.com/question/20076842
Why did Constantine establish a new capital of the Roman Empire in Byzantium?
WILL MARK BRAINLIEST
Answer:
Explanation:
For to stablish with more power his new empire based on christianity.
Answer: Because it lay on the European side of the Strait of Bosporus, the Emperor Constantine understood its strategic importance and upon reuniting the empire in 324 CE built his new capital there.
includes several applets, including system and security, programs, user accounts and ease of access.
Control panel includes several applets, including system and security, programs, user accounts and ease of access.
What is a software?A software can be defined as a set of executable instructions that is typically used to instruct a computer system on how to perform a specific task (function) and proffer solutions to a particular problem.
What is a control panel?A control panel can be defined as a screen dashboard found in a software which is designed and developed to present end users any combination of applets, check boxes, buttons, submenus, security, and input fields that can be used for configuring applications, user accounts, the hardware, and operating system.
Read more on control panel here: https://brainly.com/question/1445737
#SPJ1
aquatic life zone such as acorans and their bays, estuaries, coastal wetlands, shorelines, coral reffs and mangrove forests?
Answer:
Iajajkwbwiw whw
Explanation:
Bshsiwiqnqiaowpwownsbbsdk akakwjnwkwnwkwnwoqknanamamalamkakakskwkwkwnwmw.
I hope u liked my answer. Thank u
What is machine? Any three example of cpu ? show principle of computer.
Answer:
Single Core
Dual Core
Quad Core
Explanation:
PLEASE ANSWER CORRECTLY
Which type of loop is best in each situation?
for or while ? : You know ahead of time how many passes you wish to make through a loop.
for or while ? : You do not know ahead of time how many passes you wish to make through a loop.
Answer:
a
Explanation:
E
Answer:
1:for
2:while
Explanation:
how can I download music and films at home without breaking the law?
Plz help I will give brainliest
Answer: use a legal music downloader
Explanation: :)
Answer:
Paying for those music and movies.
Explanation:
If you pay for them, you are pretty much an "owner" of those materials and there is no way you can get in trouble. Now, however, you can use services such as Spotify, Netflix, and many more as those companies have bought the rights to stream those at a cheaper price for people.
Hope this helps!
A............
refers to a person who has the knowledge and skills to effectively
use digital technologies to communicate with others, participate in society and create and
consume digital content.
mer
Cloud source llc sells to distribution inc. A promising idea for a technological innovation that looks promising but that is still being developed. This is.
Since Cloud source llc sells to distribution inc. A promising idea for a technological innovation that looks promising but that is still being developed. This is known to be ethical and legal.
What is ethical and legal standard?The term Legality is known to be a term that connote any kind of act that is said to be in line or in accordance with the rule of law/law.
Ethics is known to be a term that connote the concepts that is based on right and wrong behavior of people.
Some actions can be said to be legal but in some, people do see it as not ethical. Therefore, Since Cloud source llc sells to distribution inc. A promising idea for a technological innovation that looks promising but that is still being developed. This is known to be ethical and legal.
Learn more about ethical way from
https://brainly.com/question/13383200
#SPJ1
Cloud Source LLC sells to Distribution Inc. a promising idea for a technological innovation that looks promising but that is still being developed. This is O a. ethical but illegal To b. ethical and legal. O c. illegal and unethical. 10 d. legal but unethical.
Properties of variable in QBASIC
The Properties of variable in QBASIC are based on their:
Character set.Constants.Operator and Operands.Expression, etc.What are the variables in QBASIC?The variables are known to be of two types which are:
Numeric variable:
This is known to often take numeric value and is shown by an alphabet or an alphabet accompanied by another alphabet or number.
String variable :
This is known to be a string variable that is shown by an alphabet accompanied by dollar ()sign.
Therefore, The Properties of variable in QBASIC are based on their:
Character set.Constants.Operator and Operands.Expression, etc.Learn more about QBASIC from
https://brainly.com/question/20727977
#SPJ1
Dora has inserted a text box into a Word document that she is formatting. Which strategy will not format text boxes? Create a link between two text boxes. Set the height and width of the text box. Add background images to the text box. Link the text box to another document.
Answer:
D. Link the text box to another document.
Explanation:
A text box is an object that you may add to your page that allows you to place and enter text wherever in it. The correct option is D.
What is a text box?A text box is an object that you may add to your page that allows you to place and enter text wherever in it. Content boxes may be handy for attracting attention to a certain text and also for moving text about in your document.
Dora has inserted a text box into a Word document that she is formatting. Therefore, the strategy that will not format text boxes is strategy will not format text boxes.
Hence, the correct option is D.
Learn more about Text Box:
https://brainly.com/question/13812028
#SPJ2
What is the result of the following program? print(“10 + 2”) print(3 + 5) 12 8 10 + 2 3 + 5 12 3 + 5 10 + 2 8
Answer:
print(“10 + 2”) Will output "10 + 2" without the quotation marks. This is because the text to print is encapsulated in quotation marks, indicating a "string literal." This means, to put it simply, it will always print what you put there even if it's a math equation.