Answer:
Check the explanation
Explanation:
C++ PROGRAM
#include <iostream>
using namespace std;
int main()
{
float pounds;
float kilograms;
cout<<"Please enter the weight in pounds :";
cin>>pounds;
kilograms=pounds*0.454;
cout<<"The weight in Kilogram is:"<<kilograms<<"kilograms";
return 0;
}
Kindly check the attached image below for the code output.
Answer:
The class definition to this question can be given as:
Class definition:
public class Value //define class value.
{
private boolean modified = false; //define variable modified.
private int val; //define variable.
Value(int i) //parameterized constructor
{
val = i; //holds parameter value.
}
public int getVal() //define method getVal.
{
return val;
}
public void setVal(int i) //define method setVal
{
val = i; //holds parameter value
modified = true; //change boolean variable value.
}
public boolean wasModified() //define method wasModified.
{
return modified; //return value.
}
}
Explanation:
The description of the above class definition as follows:
- Firstly we define a class that is "value" inside a class we define two variable that is "modified and val". Where modified is a boolean variable that holds boolean value true or false and val is an integer variable that holds an integer value.
- Inside the class, we define parameterized constructor in this constructor we pass an integer parameter that is "i" inside this constructor we use the val variable for hold i variable value.
- Then we define three functions that are "getVal, setVal, and wasModified".
- The getVal() function is used for return value. The setVal() function uses an integer parameter that is "i" this function holds value in variable i in val variable and change value of the modified variable that is "true". The wasModified() function is used to return modified variable value.
Answer:
index
Explanation:
The integer expression inside the brackets that indicate the position of character in the string is called Index. This is used to find the character at specific position in the string.
For Example
We have a string "Country" if we write Country[3], it means 3rd character in string that is "u".
Answer:
The correct answer is d. Algorithms may be inefficient when used by a human brain.
Explanation:
This is a situation typical of algorithms, since in order for them to work perfectly, the participation of people who carry out the necessary tests is required for the new creation to be useful in a specific field. Algorithms are logical operations determined according to a pattern, but the functioning of the human brain is in many cases different from a simple algorithm, since it associates situations and, depending on their complexity, also solves them.
Answer:
D. by checking the version history
Explanation:
When you access a document that is stored on the server and it is used by several teams, you can check the version history by going to file, then version history and see version history and in there, you can check all the versions, who edited the file and the changes that have been made. According to this, the answer is that the teams know that they are accessing the latest copy of the document on the server by checking the version history.
The other options are not right because a duplicate copy and taking a backup don't guarantee that you have the latest version of the document. Also, a reporting tool is a system that allows you to present information in different ways like using charts and tables and this won't help to check that you have the latest version of the document.