Answer:
The answer is "check the worksheet is not read only"
Explanation:
The read only mode is used for read the file data, and it doesn't allows the user to update the file, and for updating the worksheet we should check iut does not open in the read-only mode.
If it is open, then we close it and for close we goto the office button and click on the tools option after that goto general setting, in this there is a check box for turn off the read-only mode.
Answer:
// In the number.cpp file;
#include "Number.h"
#include <iostream>
using namespace std;
Number::Number(int number)
{
num = number;
}
void Number::SetNum(int number)
{
num = number;
}
int Number::GetNum()
{
return num;
}
ostream &operator<<(ostream &out, const Number &n)
{
out << "The value is " << n.num << endl;
return out;
}
// in the main.cpp file;
#include "Number.cpp"
#include <iostream>
using namespace std;
int main()
{
int input;
cin >> input;
Number num = Number(input);
cout << num;
return 0;
}
Explanation:
The main function in the main.cpp file prompts the user for the integer value to be displayed. The Number file contains defined functions and methods of the number class to set, get and display the "num" variable.
Answer:
First_Number =input("Enter your first number")
Last_Number =input("Enter your last number")
tup1=(First_Number, Last_Number)
print(tup1)
Explanation:
The above Python program asks the user to input two numbers, and then it creates a tuple out of it, and finally prints the tuple. Remember tuple uses () and the tuple items are mentioned inside it and are separated by a comma. And we can print tuple fully through the print statement mentioned above in the program. Remember that tuples are immutable, and this means you cannot update or change the values of the tuple. However, you can concatenate two tuples.
Answer:
#include<ios>// HEADER FILe
#include<iomanip> // HEADER FILE
using namespace std;// namespace
int main() // main function
{
double tem=103.45632; // variable declaration
cout<<" The outside Temperature is:";
cout<<fixed<<setprecision(2)<<tem; // display
return 0;
}
Explanation:
<u>The following are the description of the program</u>.
- set the required header files and namespaces, then declare the main method and inside the main function.
- Set the double data type variable 'tem' and initialize the value '103.45632'.
- Finally, print the following message and print the output through the cout that is predefined function.
D cause you will need to keep up with data also