Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
int perimeter(int side1, int side2, int side3){
return side1+side2+side3;
}
struct Triangle {
int side1; int side2; int side3;
};
int main(void) {
int side1, side2, side3;
cout<<"Sides of the triangle: ";
cin>>side1>>side2>>side3;
struct Triangle T;
T.side1 = side1;
T.side2 = side2;
T.side3 = side3;
cout << "Perimeter: " << perimeter(T.side1,T.side2,T.side3) << endl;
return 0;
}
Explanation:
See attachment for complete code where comments are as explanation
Answer:
Option D: If it is the month of January, then the temperature is cool.
Explanation:
A conditional statement is the one having an if condition in it that says, if the condition is true proceed to the next statement, else not.
Given statements are:
- If it is the month of January, then it is winter.
This can be written as: if (January)⇒Winter
- If it is winter, then the temperature is cool.
This can be written as: if (winter)⇒ Temperature(cool)
So by combining both the statements, the winter clause will be connected and we get:
if(January)⇒Temperature (cool)
This can be written as:
- If it is the month of January, then the temperature is cool.
So, Option D is the correct answer.
i hope it will help you!
Answer:
I'd choose A, all of the above.
Reasoning Why:
I'll be taking you on a step to step process on why I inputted the answer.
The <div>, is basically like a container that you can group tougher, why this is great is because you can edit the div using a background-color effecting that group such as the following..
EXAMPLE OF BACKGROUND-COLOR DIV (background-color)
<!DOCTYPE html>
<html>
<head>
<title>Brainly Example | HTML Div</title>
<style>
#byexample{
background-color:red;
/*Example of the Background-color attrib*/
/*You can also use the background-image attrib, however I recommend you checkout W3Schools, on that topic.*/
}
</style>
</head>
<body>
<div id="byexample">
<p>Just some random text to demonstrate.</p>
</div>
</body>
</html>
END OF EXAMPLE
You can also, in the <div> change multiple styles of an element in the div. However, if do want to change the styles of a single element you would need to nest it.
<!DOCTYPE html>
<html>
<head>
<title>Brainly Example | HTML Div</title>
<style>
#byexample #text{
background-color:red;
color:yellow;
}
</style>
</head>
<body>
<div id="byexample">
<p id="text">Just some random text to demonstrate.</p>
</div>
</body>
END OF EXAMPLE
Lastly, you can group elements using divs, as stated in openclassroom (website).
Anyways, I hope this helped!
Happy coding!
Answer:
A
Explanation:
You can quickly and easily sort the text of a bulleted or numbered list in Microsoft's popular Word program so that your text is in alphabetical order. In the Sort Text dialog box, under Sort by, click Paragraphs and Text, and then click either Ascending or Descending.
What are the answer choices