Answer:
There are two ways to insert the new column or row in the table.
Explanation:
<u>Method I</u>
i. Select the cell where you want to add a new row or column,
ii. Click on Home Tab
iii. Find insert button in Cells Group.
iv. Click on Insert Row or Insert Column button.
By following above mentioned steps we can add a row or column in Excel sheet.
<u>Method II</u>
i. Select the cell where you want to add a new row or column,
ii. Right Click on the selected Cell.
iii. Find Insert Button in drop down menu and Click on Insert.
iv. There are four options in POP menu, choose Entire Row or Entire Column to insert row or column.
Answer:
/*C++ program that prompts user to enter the name of input file(input.txt in this example) and print the sum of the values in the file to console. If file dosnot exist, then close the program */
//header files
#include <fstream>
#include<string>
#include <iostream>
#include <cstdlib> //needed for exit function
using namespace std;
//function prototype
int fileSum(string filename);
int main()
{
string filename;
cout << "Enter the name of the input file: ";
cin >> filename;
cout << "Sum: " << fileSum(filename) << endl;
system("pause");
return 0;
}
/*The function fileSum that takes the string filename and
count the sum of the values and returns the sum of the values*/
int fileSum(string filename)
{
//Create a ifstream object
ifstream fin;
//Open a file
fin.open(filename);
//Initialize sum to zero
int sum=0;
//Check if file exist
if(!fin)
{
cout<<"File does not exist ."<<endl;
system("pause");
exit(1);
}
else
{
int value;
//read file until end of file exist
while(fin>>value)
{
sum+=value;
}
}
return sum;
}//end of the fileSum
Explanation:
This is a C++ program that prompts user to enter the name of input file(input.txt in this example) and print the sum of the values in the file to console. If file dosnot exist, then close the program.
Check attachment for sample output screenshot.
The answer is computer. A computer is made up of microchips (CPU and GPU), an operation system (macOS or Windows), input methods (keyboard and mouse), and other parts.
Answer:
1. 321 x 408 print (321 times 408)
Explanation:
It is multiplication, it will create a product. So that is why.