Answer:
def floor_sum(number1, number2):
total = number1 + number2
if total >= 0:
return int(total)
else:
return int(total) - 1
print(floor_sum(1.1, 3.05))
Explanation:
*The code is in Python.
Create a function called floor_sum that takes two parameters, number1 and number2
Sum them and set it to the total
Check if the total is positive number or 0, return the integer part of the total. Otherwise, subtract 1 from the integer part of the total and return it.
Call the function with given parameters in the question and print the result
Note that if the result is a negative value like -5.17, the floor of the result is -6 not -5.
Answer:
The answer is "Unstructured"
Explanation:
In comparison, unstructured information applies to information, which doesn't suit the conventional column and rows concerning databases properly. It is also known as sources, that include mails, audio and video files, web pages and posts in communication networks.
- This tracks and communicates on travel and object flow-through sensors and much more.
- These types of data are used in both companies and organizations.
Answer:
The correct answer to the following question will be "Math.sqrt(area*2)".
Explanation:
- The Math.sqrt( ) method in JavaScript is used to find the squares root of the given figure provided to the feature as a variable.
- Syntax Math.sqrt(value) Variables: this function takes a single variable value that represents the amount whose square root is to be determined.
- The area of the figure is the number of squares needed to cover it entirely, like the tiles on the ground.
Area of the square = side times of the side.
Because each side of the square will be the same, the width of the square will only be one side.
Therefore, it would be the right answer.
Answer:
// here is code in C++(bmi.cpp).
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
float weight,height;
cout<<"enter the weight(in kilograms):";
//read the weight
cin>>weight;
cout<<"enter the height(in meters):";
//read the height
cin>>height;
// calculate the bmi
float bmi=weight/(pow(height,2));
// print the body-mass index with two decimal places
cout<<"BMI is: "<<fixed<<setprecision(2)<<bmi<<endl;
return 0;
}
Explanation:
Read the weight from user and assign it to variable "weight",read height and assign it to variable "height".Then find the body-mass index as (weight/height^2).Here weight should be in kilograms and height should be in meters.
Output:
enter the weight(in kilograms):75
enter the height(in meters):1.8
BMI is: 23.15