Answer:
D, document and explain parts of code
Explanation:
Mark me brainliest :)
Answer: I need a point bruhhh
Explanation:
Answer:
C) modify the user's properties to set the Account Never Expires setting
Explanation:
Based on the scenario being described it can be said that in order to completely make sure that his does not happen again you need to modify the user's properties to set the Account Never Expires setting. Doing so will prevent the executives account from expiring and having to reactivate the account again every time this would otherwise happen.
The query that displays the required data is
SELECT name, orderID, productID FROM Products WHERE Product > 1
<h3>How to rewrite the query?</h3>
To do this, we make use of the following parameters:
- Table name: Products
- Columns to read: name, orderID and productID
- Condition: Product > 1
Next, we make use of the SELECT query
The syntax of the SELECT query is:
SELECT columns from table where condition
So, we have:
SELECT
name, orderID, productID
FROM Products
WHERE Product > 1
Read more about SQL query at:
brainly.com/question/19801436
#SPJ1
Answer:
The C++ code is given below with appropriate comments for better understanding
Explanation:
/*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